Class: Seafoam::Formatters::Text::ListFormatter

Inherits:
Base::ListFormatter show all
Defined in:
lib/seafoam/formatters/text.rb

Overview

A plain-text formatter for the ‘list` command.

Instance Attribute Summary

Attributes inherited from Base::ListFormatter

#entries

Instance Method Summary collapse

Methods inherited from Base::ListFormatter

#initialize

Constructor Details

This class inherits a constructor from Seafoam::Formatters::Base::ListFormatter

Instance Method Details

#formatObject



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