class BundleOutdatedFormatter::TSVFormatter

Formatter for TSV

Public Instance Methods

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