Class: Seafoam::Formatters::Base::SourceFormatter
- Inherits:
-
Object
- Object
- Seafoam::Formatters::Base::SourceFormatter
- Defined in:
- lib/seafoam/formatters/base.rb
Overview
Formats the output of the ‘source` command.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#source_position ⇒ Object
readonly
Returns the value of attribute source_position.
Instance Method Summary collapse
-
#initialize(source_position) ⇒ SourceFormatter
constructor
A new instance of SourceFormatter.
Constructor Details
#initialize(source_position) ⇒ SourceFormatter
Returns a new instance of SourceFormatter.
84 85 86 |
# File 'lib/seafoam/formatters/base.rb', line 84 def initialize(source_position) @source_position = source_position end |
Instance Attribute Details
#source_position ⇒ Object (readonly)
Returns the value of attribute source_position.
82 83 84 |
# File 'lib/seafoam/formatters/base.rb', line 82 def source_position @source_position end |