Class: Seafoam::Formatters::Text::ListFormatter
- Inherits:
-
Base::ListFormatter
- Object
- Base::ListFormatter
- Seafoam::Formatters::Text::ListFormatter
- Defined in:
- lib/seafoam/formatters/text.rb
Overview
A plain-text formatter for the ‘list` command.
Instance Attribute Summary
Attributes inherited from Base::ListFormatter
Instance Method Summary collapse
Methods inherited from Base::ListFormatter
Constructor Details
This class inherits a constructor from Seafoam::Formatters::Base::ListFormatter
Instance Method Details
#format ⇒ Object
53 54 55 56 57 |
# File 'lib/seafoam/formatters/text.rb', line 53 def format entries.map do |entry| "#{entry.file}:#{entry.index} #{entry.graph_name_components.join("/")}" end.join("\n") end |