Sha256: 01397b5baa64463dd269a02723f5dedef7eb404e107d8398725ed828b2240928
Contents?: true
Size: 406 Bytes
Versions: 2
Compression:
Stored size: 406 Bytes
Contents
module Dread module ConsoleOutput class << self INDENT_INCREASE = 3 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dread-0.0.4 | lib/dread/console_output.rb |
dread-0.0.3 | lib/dread/console_output.rb |