Class: BundleOutdatedFormatter::MarkdownFormatter
- Defined in:
- lib/bundle_outdated_formatter/formatter/markdown_formatter.rb
Overview
Formatter for Markdown
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
6 7 8 9 10 11 12 |
# File 'lib/bundle_outdated_formatter/formatter/markdown_formatter.rb', line 6 def convert @outdated_gems.map! do |gem| "| #{gem.values.join(' | ')} |".gsub(/ /, ' ') end (header + @outdated_gems.join("\n")).chomp end |