Class: PassStation::Output::Csv
- Inherits:
-
Object
- Object
- PassStation::Output::Csv
- Defined in:
- lib/pass_station/output.rb
Overview
CSV formatter
Class Method Summary collapse
-
.format(table) ⇒ Array<String>
Format the
Array<CSV::Row>
into a CSV.
Class Method Details
.format(table) ⇒ Array<String>
Format the Array<CSV::Row>
into a CSV
209 210 211 |
# File 'lib/pass_station/output.rb', line 209 def format(table) CSV::Table.new(table).to_csv.split("\n") end |