Sha256: 6ad7410f46bf1b6593697b3b8275b3e5fd192d8c475feba692e5a99ddd733cf6
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 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 def generate_missing(klasses_with_missing_dependables) klasses_with_missing_dependables.each do |klass, missing_dependables| puts klass missing_dependables.each do |missing_dependable| puts " #{missing_dependable}" end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dread-0.1.0 | lib/dread/console_output.rb |