class BrewOutdatedFormatter::JSONFormatter

Formatter for JSON

Public Instance Methods

convert() click to toggle source
# File lib/brew_outdated_formatter/formatter/json_formatter.rb, line 7
def convert
  text = @pretty ? JSON.pretty_generate(@outdated_formulas) : @outdated_formulas.to_json
  text.chomp
end