Class: Seafoam::Formatters::Base::InfoFormatter
- Inherits:
-
Object
- Object
- Seafoam::Formatters::Base::InfoFormatter
- Defined in:
- lib/seafoam/formatters/base.rb
Overview
Formats the output of the ‘info` command.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#major_version ⇒ Object
readonly
Returns the value of attribute major_version.
-
#minor_version ⇒ Object
readonly
Returns the value of attribute minor_version.
Instance Method Summary collapse
-
#initialize(major_version, minor_version) ⇒ InfoFormatter
constructor
A new instance of InfoFormatter.
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_version ⇒ Object (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_version ⇒ Object (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 |