Class: Nauvisian::CLI::Lister::CSV
- Inherits:
-
Nauvisian::CLI::Lister
- Object
- Nauvisian::CLI::Lister
- Nauvisian::CLI::Lister::CSV
- 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
32 33 34 35 36 37 38 |
# File 'lib/nauvisian/cli/lister.rb', line 32 def list(rows) CSV(headers: @headers, write_headers: true) do |out| rows.each do |row| out << row.values_at(*@headers) end end end |