Class: Nauvisian::CLI::Lister::Gfm

Inherits:
Nauvisian::CLI::Lister show all
Defined in:
lib/nauvisian/cli/lister.rb

Instance Method Summary collapse

Methods inherited from Nauvisian::CLI::Lister

all, for, inherited, #initialize

Constructor Details

This class inherits a constructor from Nauvisian::CLI::Lister

Instance Method Details

#list(rows) ⇒ Object



42
43
44
45
46
47
48
# File 'lib/nauvisian/cli/lister.rb', line 42

def list(rows)
  puts @headers.join("|")
  puts Array.new(@headers.length, "-").join("|")
  rows.each do |row|
    puts row.values_at(*@headers).join("|")
  end
end