Class: BrewOutdatedFormatter::YAMLFormatter

Inherits:
Formatter
  • Object
show all
Defined in:
lib/brew_outdated_formatter/formatter/yaml_formatter.rb

Overview

Formatter for YAML

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

#initialize, #read_stdin

Constructor Details

This class inherits a constructor from BrewOutdatedFormatter::Formatter

Instance Method Details

#convertObject



7
8
9
# File 'lib/brew_outdated_formatter/formatter/yaml_formatter.rb', line 7

def convert
  @outdated_formulas.to_yaml.chomp
end