Module: Tree::InternalChildrenHashImplementation

Includes:
InternalChildrenImplementation
Defined in:
lib/modular_tree/implementations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from InternalChildrenImplementation

#attach, #branches, #each_branch

Methods included from ChildrenImplementation

#attach

Methods included from NodeProperty

#node, #node_value

Methods included from BranchesProperty

#bare?, #branches, #each_branch

Methods included from ChildrenProperty

#attach, #detach, #each_child

Methods included from InternalImplementation

#node, #node_value, #this

Instance Attribute Details

#hashObject (readonly)

Returns the value of attribute hash.



221
222
223
# File 'lib/modular_tree/implementations.rb', line 221

def hash
  @hash
end

Instance Method Details

#childrenObject



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

def children = hash.values

#initializeObject



225
226
227
228
# File 'lib/modular_tree/implementations.rb', line 225

def initialize
  @hash = {}
  super
end