Method: ColorLS::Core#ls
- Defined in:
- lib/colorls/core.rb
#ls ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/colorls/core.rb', line 30 def ls return print "\n Nothing to show here\n".colorize(@colors[:empty]) if @contents.empty? if @tree print "\n" tree_traverse(@input, 0, 2) else @contents = chunkify @contents.each { |chunk| ls_line(chunk) } end display_report if @report true end |