class PassStation::Output::Csv
CSV formatter
Public Class Methods
format(table)
click to toggle source
Format the +Array<CSV::Row>+ into a CSV @param table [Array<CSV::Row>] an +Array<CSV::Row>+ @return [Array<String>] the formatted CSV ready to be printed
# File lib/pass_station/output.rb, line 210 def format(table) CSV::Table.new(table).to_csv.split("\n") end