Module: Dread::ConsoleOutput
- Defined in:
- lib/dread/console_output.rb
Constant Summary collapse
- INDENT_INCREASE =
4
Class Method Summary collapse
Class Method Details
.generate(dependable_collection, indent = 0) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/dread/console_output.rb', line 7 def generate(dependable_collection, indent=0) dependable_collection.each do |relation_name, dependables| indent_string = " " * indent puts "#{indent_string}#{relation_name}" generate(dependables, indent+INDENT_INCREASE) if dependables.any? end end |