Class: Packr::SourceMap::Segment

Inherits:
Object
  • Object
show all
Defined in:
lib/packr/source_map.rb

Instance Method Summary collapse

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_columnObject



205
206
207
# File 'lib/packr/source_map.rb', line 205

def generated_column
  @data[:column]
end

#generated_lineObject



201
202
203
# File 'lib/packr/source_map.rb', line 201

def generated_line
  @data[:line]
end

#source_columnObject



189
190
191
# File 'lib/packr/source_map.rb', line 189

def source_column
  @data[:mapping][:column]
end

#source_fileObject



193
194
195
# File 'lib/packr/source_map.rb', line 193

def source_file
  @data[:mapping][:source]
end

#source_lineObject



185
186
187
# File 'lib/packr/source_map.rb', line 185

def source_line
  @data[:mapping][:line]
end

#source_nameObject



197
198
199
# File 'lib/packr/source_map.rb', line 197

def source_name
  @data[:mapping][:name]
end