Module: Tree::ChildrenProperty
- Included in:
- ChildrenImplementation, InternalParentChildImplementation
- Defined in:
- lib/modular_tree/properties.rb
Instance Method Summary collapse
- #attach(child) ⇒ Object
- #children ⇒ Object
-
#detach(arg) ⇒ Object
:call-seq: detach(key) detach(child).
- #each_child(&block) ⇒ Object
Instance Method Details
#attach(child) ⇒ Object
37 |
# File 'lib/modular_tree/properties.rb', line 37 def attach(child) = abstract_method |
#children ⇒ Object
35 |
# File 'lib/modular_tree/properties.rb', line 35 def children = abstract_method |
#detach(arg) ⇒ Object
:call-seq:
detach(key)
detach(child)
43 |
# File 'lib/modular_tree/properties.rb', line 43 def detach(arg) = abstract_method |
#each_child(&block) ⇒ Object
36 |
# File 'lib/modular_tree/properties.rb', line 36 def each_child(&block) = children.each(&block) |