module Disposable::Twin::Parent
Public Class Methods
included(includer)
click to toggle source
# File lib/disposable/twin/parent.rb, line 2 def self.included(includer) includer.class_eval do property(:parent, virtual: true) end end
Public Instance Methods
build_twin(dfn, value, options={})
click to toggle source
FIXME: for collections, this will merge options for every element.
Calls superclass method
# File lib/disposable/twin/parent.rb, line 9 def build_twin(dfn, value, options={}) super(dfn, value, options.merge(parent: self)) end