Module: Disposable::Twin::Parent
- Defined in:
- lib/disposable/twin/parent.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#build_twin(dfn, value, options = {}) ⇒ Object
FIXME: for collections, this will merge options for every element.
Class Method Details
.included(includer) ⇒ Object
2 3 4 |
# File 'lib/disposable/twin/parent.rb', line 2 def self.included(includer) includer.property(:parent, virtual: true) end |
Instance Method Details
#build_twin(dfn, value, options = {}) ⇒ Object
FIXME: for collections, this will merge options for every element.
7 8 9 |
# File 'lib/disposable/twin/parent.rb', line 7 def build_twin(dfn, value, ={}) super(dfn, value, .merge(parent: self)) end |