Class: Seafoam::Formatters::Base::InfoFormatter

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

Overview

Formats the output of the ‘info` command.

Direct Known Subclasses

Json::InfoFormatter, Text::InfoFormatter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(major_version, minor_version) ⇒ InfoFormatter

Returns a new instance of InfoFormatter.



63
64
65
66
# File 'lib/seafoam/formatters/base.rb', line 63

def initialize(major_version, minor_version)
  @major_version = major_version
  @minor_version = minor_version
end

Instance Attribute Details

#major_versionObject (readonly)

Returns the value of attribute major_version.



61
62
63
# File 'lib/seafoam/formatters/base.rb', line 61

def major_version
  @major_version
end

#minor_versionObject (readonly)

Returns the value of attribute minor_version.



61
62
63
# File 'lib/seafoam/formatters/base.rb', line 61

def minor_version
  @minor_version
end