class BundleOutdatedFormatter::CSVFormatter

Formatter for CSV

Public Instance Methods

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