Module: Disposable::Twin::Builder::ClassMethods
- Defined in:
- lib/disposable/twin/builder.rb
Instance Method Summary collapse
Instance Method Details
#twin(twin_class, &block) ⇒ Object
33 34 35 36 |
# File 'lib/disposable/twin/builder.rb', line 33 def twin(twin_class, &block) twin_class.representer_class.representable_attrs.each { |dfn| yield(dfn) } if block_given? self.twin_class = twin_class end |