Class: Seafoam::Formatters::Base::SourceFormatter

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

Overview

Formats the output of the ‘source` command.

Direct Known Subclasses

Json::SourceFormatter, Text::SourceFormatter

Instance Attribute Summary collapse

Instance Method Summary collapse

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_positionObject (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