# File lib/t/printable.rb, line 116 def print_statuses(statuses) statuses.reverse! if options['reverse'] || options['stream'] if options['csv'] say STATUS_HEADINGS.to_csv unless statuses.empty? statuses.each do |status| print_csv_status(status) end elsif options['long'] array = statuses.map do |status| build_long_status(status) end print_table_with_headings(array, STATUS_HEADINGS) else statuses.each do |status| print_status(status) end end end