Module: Tree::InternalChildrenImplementation

Instance Method Summary collapse

Methods included from Implementation

#initialize

Methods included from NodeProperty

#node, #node_value

Methods included from BranchesProperty

#bare?

Methods included from ChildrenProperty

#children, #detach, #each_child

Methods included from InternalImplementation

#node, #node_value, #this

Instance Method Details

#attach(child) ⇒ Object



129
# File 'lib/modular_tree/implementations.rb', line 129

def attach(child) = abstract_method

#branchesObject

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)