Class: BundleOutdatedFormatter::TerminalFormatter
- Defined in:
- lib/bundle_outdated_formatter/formatter/terminal_formatter.rb
Overview
Formatter for Terminal
Constant Summary
Constants inherited from Formatter
Formatter::COLUMNS, Formatter::GEM_REGEXP, Formatter::GROUPS_REGEXP, Formatter::INSTALLED_REGEXP, Formatter::NEWEST_REGEXP, Formatter::REQUESTED_REGEXP
Instance Method Summary collapse
Methods inherited from Formatter
Constructor Details
This class inherits a constructor from BundleOutdatedFormatter::Formatter
Instance Method Details
#convert ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/bundle_outdated_formatter/formatter/terminal_formatter.rb', line 7 def convert table = TTY::Table.new(header: COLUMNS) do |t| @outdated_gems.each do |gem| t << gem.values end end table.render(@style.to_sym, padding: [0, 1]).chomp end |