Module: Tree::InternalChildrenImplementation
- Includes:
- ChildrenImplementation, InternalImplementation
- Included in:
- InternalChildrenArrayImplementation, InternalChildrenHashImplementation, InternalChildrenListImplementation
- Defined in:
- lib/modular_tree/implementations.rb
Instance Method Summary collapse
- #attach(child) ⇒ Object
-
#branches ⇒ Object
alias_method :branches, :children alias_method :each_branch, :each_child.
- #each_branch(&block) ⇒ Object
Methods included from Implementation
Methods included from NodeProperty
Methods included from BranchesProperty
Methods included from ChildrenProperty
#children, #detach, #each_child
Methods included from InternalImplementation
Instance Method Details
#attach(child) ⇒ Object
129 |
# File 'lib/modular_tree/implementations.rb', line 129 def attach(child) = abstract_method |
#branches ⇒ Object
alias_method :branches, :children
alias_method :each_branch, :each_child
126 |
# File 'lib/modular_tree/implementations.rb', line 126 def branches = children |
#each_branch(&block) ⇒ Object
127 |
# File 'lib/modular_tree/implementations.rb', line 127 def each_branch(&block) = each_child(&block) |