Class: Seafoam::Formatters::Base::ListFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/seafoam/formatters/base.rb

Overview

Formats the output of the ‘list` command.

Direct Known Subclasses

Json::ListFormatter, Text::ListFormatter

Defined Under Namespace

Classes: Entry

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entries) ⇒ ListFormatter

Returns a new instance of ListFormatter.



75
76
77
# File 'lib/seafoam/formatters/base.rb', line 75

def initialize(entries)
  @entries = entries
end

Instance Attribute Details

#entriesObject (readonly)

Returns the value of attribute entries.



73
74
75
# File 'lib/seafoam/formatters/base.rb', line 73

def entries
  @entries
end