Method: PSD::Node::Ancestry#root
- Defined in:
- lib/psd/nodes/ancestry.rb
#root ⇒ Object
Returns the root node
6 7 8 9 |
# File 'lib/psd/nodes/ancestry.rb', line 6 def root return self if is_root? return parent.root end |
Returns the root node
6 7 8 9 |
# File 'lib/psd/nodes/ancestry.rb', line 6 def root return self if is_root? return parent.root end |