method

ancestors

ancestors()
public

Returns list of ancestors, starting from parent until root.

  subchild1.ancestors # => [child1, root]