Sha256: f0295eaa49dfd2838e77ae1672e55a97e31e6ec86ea6a16bc8406da3f7baf34d
Contents?: true
Size: 302 Bytes
Versions: 2
Compression:
Stored size: 302 Bytes
Contents
class Typero::Type attr_accessor :opts attr_accessor :value def initialize(value, opts) @value = value @opts = opts end # default validation for any type def validate(what) true end def get @value end def set @value end def default nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typero-0.3.2 | ./lib/typero/type.rb |
typero-0.3.0 | ./lib/typero/type.rb |