Class: PassStation::Output::Yaml
- Inherits:
-
Object
- Object
- PassStation::Output::Yaml
- Defined in:
- lib/pass_station/output.rb
Overview
YAML formatter
Class Method Summary collapse
-
.format(table) ⇒ Array<String>
Format the
Array<CSV::Row>
into YAML.
Class Method Details
.format(table) ⇒ Array<String>
Format the Array<CSV::Row>
into YAML
237 238 239 |
# File 'lib/pass_station/output.rb', line 237 def format(table) [table.map(&:to_h).to_yaml] end |