class PassStation::Output::Yaml

YAML formatter

Public Class Methods

format(table) click to toggle source

Format the +Array<CSV::Row>+ into YAML @param table [Array<CSV::Row>] an +Array<CSV::Row>+ @return [Array<String>] the formatted YAML ready to be printed (only

one element on the array, keep an array for compatibility with
{highlight_found} and homogeneity with other formatters)
# File lib/pass_station/output.rb, line 238
def format(table)
  [table.map(&:to_h).to_yaml]
end