Class: BrewOutdatedFormatter::CSVFormatter
- Defined in:
- lib/brew_outdated_formatter/formatter/csv_formatter.rb
Overview
Formatter for CSV
Constant Summary
Constants inherited from Formatter
Formatter::COLUMNS, Formatter::CURRENT_REGEXP, Formatter::FORMULA_REGEXP, Formatter::INSTALLED_REGEXP, Formatter::PINNED_REGEXP
Instance Method Summary collapse
Methods inherited from Formatter
Constructor Details
This class inherits a constructor from BrewOutdatedFormatter::Formatter
Instance Method Details
#convert ⇒ Object
7 8 9 10 11 12 13 14 15 |
# 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 |