Sha256: 1e98fe7d8ac91ce2e6cca99c5c8ca807b62dfe4f87262239e2da48a54a57e600
Contents?: true
Size: 393 Bytes
Versions: 3
Compression:
Stored size: 393 Bytes
Contents
module Id module Model module Descriptor def field(f, options={}) Field.new(self, f, options).define end def has_one(f, options={}) HasOne.new(self, f, options).define end def has_many(f, options={}) HasMany.new(self, f, options).define end def to_proc lambda { |data| new data } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
id-0.0.12 | lib/id/model/descriptor.rb |
id-0.0.11 | lib/id/model/descriptor.rb |
id-0.0.10 | lib/id/model/descriptor.rb |