Sha256: 42126d7964409b4237fa18009860eefa0e3efafe724c667b9f7d7356b17726c3
Contents?: true
Size: 406 Bytes
Versions: 3
Compression:
Stored size: 406 Bytes
Contents
module Dread module ConsoleOutput class << self INDENT_INCREASE = 4 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 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dread-0.0.7 | lib/dread/console_output.rb |
dread-0.0.6 | lib/dread/console_output.rb |
dread-0.0.5 | lib/dread/console_output.rb |