Module: Cell::Twin::ClassMethods

Defined in:
lib/cell/twin.rb

Instance Method Summary collapse

Instance Method Details

#twin(twin_class) ⇒ Object


11
12
13
# File 'lib/cell/twin.rb', line 11

def twin(twin_class)
  super(twin_class) { |dfn| property dfn.name } # create readers to twin model.
end