Class: Packr::SourceMap::Segment
- Inherits:
-
Object
- Object
- Packr::SourceMap::Segment
- Defined in:
- lib/packr/source_map.rb
Instance Method Summary collapse
- #generated_column ⇒ Object
- #generated_line ⇒ Object
-
#initialize(data) ⇒ Segment
constructor
A new instance of Segment.
- #source_column ⇒ Object
- #source_file ⇒ Object
- #source_line ⇒ Object
- #source_name ⇒ Object
Constructor Details
#initialize(data) ⇒ Segment
Returns a new instance of Segment.
181 182 183 |
# File 'lib/packr/source_map.rb', line 181 def initialize(data) @data = data end |
Instance Method Details
#generated_column ⇒ Object
205 206 207 |
# File 'lib/packr/source_map.rb', line 205 def generated_column @data[:column] end |
#generated_line ⇒ Object
201 202 203 |
# File 'lib/packr/source_map.rb', line 201 def generated_line @data[:line] end |
#source_column ⇒ Object
189 190 191 |
# File 'lib/packr/source_map.rb', line 189 def source_column @data[:mapping][:column] end |
#source_file ⇒ Object
193 194 195 |
# File 'lib/packr/source_map.rb', line 193 def source_file @data[:mapping][:source] end |
#source_line ⇒ Object
185 186 187 |
# File 'lib/packr/source_map.rb', line 185 def source_line @data[:mapping][:line] end |
#source_name ⇒ Object
197 198 199 |
# File 'lib/packr/source_map.rb', line 197 def source_name @data[:mapping][:name] end |