Method: LHS::Data#root_item
- Defined in:
- lib/lhs/data.rb
#root_item ⇒ Object (private)
121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/lhs/data.rb', line 121 def root_item return if _proxy.class != LHS::Item root = root_item = self loop do root = root._parent root_item = root if root && root._proxy.is_a?(LHS::Item) if !(root && root._parent) break end end root_item end |