Class: BundleOutdatedFormatter::JSONFormatter
- Defined in:
- lib/bundle_outdated_formatter/formatter/json_formatter.rb
Overview
Formatter for JSON
Constant Summary
Constants inherited from Formatter
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 |
# File 'lib/bundle_outdated_formatter/formatter/json_formatter.rb', line 7 def convert text = @pretty ? JSON.pretty_generate(@outdated_gems) : @outdated_gems.to_json text.chomp end |