Class: BrewOutdatedFormatter::TerminalFormatter
- Defined in:
- lib/brew_outdated_formatter/formatter/terminal_formatter.rb
Overview
Formatter for Terminal
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 16 |
# 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 |