module Structural::Model::Descriptor

Public Instance Methods

field(f, options={}) click to toggle source
# File lib/structural/model/descriptor.rb, line 4
def field(f, options={})
  Field.new(self, f, options).define
end
has_many(f, options={}) click to toggle source
# File lib/structural/model/descriptor.rb, line 12
def has_many(f, options={})
  HasMany.new(self, f, options).define
end
has_one(f, options={}) click to toggle source
# File lib/structural/model/descriptor.rb, line 8
def has_one(f, options={})
  HasOne.new(self, f, options).define
end
to_proc() click to toggle source
# File lib/structural/model/descriptor.rb, line 16
def to_proc
  lambda { |data| new data }
end