Class: SlimLint::RubyExtractor::RubySource

Inherits:
Struct
  • Object
show all
Defined in:
lib/slim_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



41
42
43
# File 'lib/slim_lint/ruby_extractor.rb', line 41

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



41
42
43
# File 'lib/slim_lint/ruby_extractor.rb', line 41

def source_map
  @source_map
end