Class: SlimLint::RubyExtractor::RubySource
- Inherits:
-
Struct
- Object
- Struct
- SlimLint::RubyExtractor::RubySource
- 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
-
#source ⇒ String
readonly
generated source code.
-
#source_map ⇒ Hash
readonly
map of line numbers from generated source to original source line number.
Instance Attribute Details
#source ⇒ String (readonly)
generated source code
41 42 43 |
# File 'lib/slim_lint/ruby_extractor.rb', line 41 def source @source end |
#source_map ⇒ Hash (readonly)
map of line numbers from generated source to original source line number
41 42 43 |
# File 'lib/slim_lint/ruby_extractor.rb', line 41 def source_map @source_map end |