Class: SourceMap::Mapping
- Inherits:
-
Struct
- Object
- Struct
- SourceMap::Mapping
- Defined in:
- lib/source_map/map.rb
Instance Attribute Summary collapse
-
#generated ⇒ Object
Returns the value of attribute generated.
-
#name ⇒ Object
Returns the value of attribute name.
-
#original ⇒ Object
Returns the value of attribute original.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
- #to_s ⇒ Object (also: #inspect)
Instance Attribute Details
#generated ⇒ Object
Returns the value of attribute generated
7 8 9 |
# File 'lib/source_map/map.rb', line 7 def generated @generated end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/source_map/map.rb', line 7 def name @name end |
#original ⇒ Object
Returns the value of attribute original
7 8 9 |
# File 'lib/source_map/map.rb', line 7 def original @original end |
#source ⇒ Object
Returns the value of attribute source
7 8 9 |
# File 'lib/source_map/map.rb', line 7 def source @source end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
8 9 10 |
# File 'lib/source_map/map.rb', line 8 def to_s "#{generated.line}:#{generated.column}->#{original.line}:#{original.column}" end |