Class: TsortableHash
- Inherits:
-
Hash
- Object
- Hash
- TsortableHash
- Includes:
- TSort
- Defined in:
- lib/cpp_dependency_graph/tsortable_hash.rb
Overview
Hash that topologically sorts itself upon insertion of a key
Instance Method Summary collapse
Instance Method Details
#tsort_each_child(node, &block) ⇒ Object
10 11 12 |
# File 'lib/cpp_dependency_graph/tsortable_hash.rb', line 10 def tsort_each_child(node, &block) fetch(node).each(&block) end |