Class: Nauvisian::CLI::Lister::Gfm
- Inherits:
-
Nauvisian::CLI::Lister
- Object
- Nauvisian::CLI::Lister
- Nauvisian::CLI::Lister::Gfm
- 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 |