Class: Ea::Cli::Output::YamlFormatter
- Defined in:
- lib/ea/cli/output/yaml_formatter.rb
Instance Method Summary collapse
Instance Method Details
#render(rows, columns: []) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/ea/cli/output/yaml_formatter.rb', line 9 def render(rows, columns: []) data = rows.map do |row| normalize_row(row, columns) end puts data.to_yaml end |