Sha256: 002f48d3084d4dacc342520ab7a34c79bc32e93a6119234bfd6e5a11a28e463a
Contents?: true
Size: 264 Bytes
Versions: 3
Compression:
Stored size: 264 Bytes
Contents
require 'active_support' require 'active_model' module Vindetta class Vin LENGTH = 17 attr_reader :value include ActiveModel::Validations validates_length_of :value, is: LENGTH def initialize(value) @value = value end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vindetta-0.6.0 | lib/vindetta/vin.rb |
vindetta-0.5.0 | lib/vindetta/vin.rb |
vindetta-0.4.0 | lib/vindetta/vin.rb |