Module: Tree::InternalRootImplementation

Includes:
InternalParentImplementation, RootProperty
Defined in:
lib/modular_tree/implementations.rb

Instance Attribute Summary

Attributes included from InternalParentImplementation

#parent

Instance Method Summary collapse

Methods included from InternalParentImplementation

#initialize

Methods included from Implementation

#initialize

Methods included from NodeProperty

#node, #node_value

Methods included from StemProperty

#stem

Methods included from ParentProperty

#parent, #parent=

Methods included from InternalImplementation

#node, #node_value, #this

Instance Method Details

#rootObject



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

def root = @root ||= parent&.root || self