Class: HamlLint::RubyExtractor::RubySource

Inherits:
Struct
  • Object
show all
Defined in:
lib/haml_lint/ruby_extractor.rb

Overview

Stores the extracted source and a map of lines of generated source to the original source that created them.

Instance Attribute Summary collapse

Instance Attribute Details

#sourceString (readonly)

generated source code

Returns:

  • (String)

    the current value of source


36
37
38
# File 'lib/haml_lint/ruby_extractor.rb', line 36

def source
  @source
end

#source_mapHash (readonly)

map of line numbers from generated source to original source line number

Returns:

  • (Hash)

    the current value of source_map


36
37
38
# File 'lib/haml_lint/ruby_extractor.rb', line 36

def source_map
  @source_map
end