Method: XDry::Scope#<<
- Defined in:
- lib/xdry/parsing/scopes_support.rb
#<<(child) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/xdry/parsing/scopes_support.rb', line 42 def << child raise StandardError, "#{self.class.name} hasn't been bound to a model, but is trying to accept a child #{child}" if @model.nil? @children << child @model << child child_added child end |