Class: Cask::TopologicalHash

Inherits:
Hash
  • Object
show all
Includes:
TSort
Defined in:
Library/Homebrew/cask/topological_hash.rb

Overview

Topologically sortable hash map.

Instance Method Summary collapse

Instance Method Details

#tsort_each_child(node, &block) ⇒ Object


13
14
15
# File 'Library/Homebrew/cask/topological_hash.rb', line 13

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