Method: Rubyfocus::RankedItem#ancestry
- Defined in:
- lib/rubyfocus/items/ranked_item.rb
#ancestry ⇒ Object
Retrieve a full list of the parents of this item. [0] = immediate parent
9 10 11 12 13 14 15 |
# File 'lib/rubyfocus/items/ranked_item.rb', line 9 def ancestry if container [container] + container.ancestry else [] end end |