module Tengine::Job::Structure::Tree

Public Instance Methods

ancestors() click to toggle source
# File lib/tengine/job/structure/tree.rb, line 12
def ancestors
  if parent = self.parent
    parent.ancestors + [parent]
  else
    []
  end
end
root() click to toggle source
# File lib/tengine/job/structure/tree.rb, line 8
def root
  root? ? self : parent.root
end
root?() click to toggle source
# File lib/tengine/job/structure/tree.rb, line 4
def root?
  parent.nil?
end