class BrewOutdatedFormatter::TerminalFormatter

Formatter for Terminal

Public Instance Methods

convert() click to toggle source
# File lib/brew_outdated_formatter/formatter/terminal_formatter.rb, line 7
def convert
  table = Terminal::Table.new do |t|
    t << COLUMNS
    t << :separator
    @outdated_formulas.each do |formula|
      t << formula.values
    end
  end
  table.render.chomp
end