Module: Tree::InternalParentImplementation

Includes:
InternalImplementation, ParentImplementation
Included in:
ArrayTree, InternalRootImplementation
Defined in:
lib/modular_tree/implementations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from NodeProperty

#node, #node_value

Methods included from StemProperty

#stem

Methods included from InternalImplementation

#node, #node_value, #this

Instance Attribute Details

#parentObject Also known as: branch

Returns the value of attribute parent.



43
44
45
# File 'lib/modular_tree/implementations.rb', line 43

def parent
  @parent
end

Instance Method Details

#initialize(parent) ⇒ Object



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

def initialize(parent) = @parent = parent