Class: Strelka::PluginRegistry
- Inherits:
-
Hash
- Object
- Hash
- Strelka::PluginRegistry
- Includes:
- TSort
- Defined in:
- lib/strelka/plugins.rb
Overview
A topologically-sorted hash for plugin management
Instance Method Summary collapse
Instance Method Details
#tsort_each_child(node, &block) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/strelka/plugins.rb', line 19 def tsort_each_child( node, &block ) mod = fetch( node ) { [] } if mod.respond_to?( :successors ) mod.successors.each( &block ) else mod.each( &block ) end end |