Method: TextOutput#print_all
- Defined in:
- lib/text_output.rb
#print_all(size) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/text_output.rb', line 38 def print_all(size) if $options[:verbose] # and not $options[:no_header] # The commented-out code is unneeded right now but may be necessary in the future heading1 = " SMALL DIRS AGGREG BIG DIRS " heading2 = "SIZE SIZE/# SIZE SIZE/# TOTAL" puts((" " * (@width - heading1.size - 2)) + heading1) puts((" " * (@width - heading2.size - 2)) + heading2) end @trees.each do |t| print_tree(t, size) end end |