class Chef::Tsorter

Public Class Methods

new(data) click to toggle source
# File lib/chef/tsorter.rb, line 8
def initialize(data)
  @data = data
end

Public Instance Methods

tsort_each_child(node, &block) click to toggle source
# File lib/chef/tsorter.rb, line 16
def tsort_each_child(node, &block)
  @data.fetch(node).each(&block)
end
tsort_each_node(&block) click to toggle source
# File lib/chef/tsorter.rb, line 12
def tsort_each_node(&block)
  @data.each_key(&block)
end