Class: Pupa::Processor::DependencyGraph

Inherits:
Hash
  • Object
show all
Includes:
TSort
Defined in:
lib/pupa/processor/dependency_graph.rb

Overview

A simple implementation of a dependency graph.

Instance Method Summary collapse

Instance Method Details

#tsort_each_child(node, &block) ⇒ Object



13
14
15
# File 'lib/pupa/processor/dependency_graph.rb', line 13

def tsort_each_child(node, &block)
  fetch(node).each(&block)
end