Method: Hanuman::TreeInstanceMethods#each_stage
- Defined in:
- lib/hanuman/tree.rb
#each_stage(&blk) ⇒ Object
19 20 21 |
# File 'lib/hanuman/tree.rb', line 19 def each_stage &blk directed_sort.map { |label| stages[label]}.compact.each(&blk) end |