class BrewOutdatedFormatter::CSVFormatter

Formatter for CSV

Public Instance Methods

convert() click to toggle source
# File lib/brew_outdated_formatter/formatter/csv_formatter.rb, line 7
def convert
  text = CSV.generate(force_quotes: true) do |csv|
    csv << COLUMNS
    @outdated_formulas.each do |formula|
      csv << formula.values
    end
  end
  text.chomp
end