123456789_123456789_123456789_123456789_123456789_

Class: ActionDispatch::ExceptionWrapper::SourceMapLocation

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Thread::Backtrace::Location
Defined in: actionpack/lib/action_dispatch/middleware/exception_wrapper.rb

Class Method Summary

Instance Method Summary

::Thread::Backtrace::Location - Inherited

#spot

See additional method definition at line 5.

Constructor Details

.new(location, template) ⇒ SourceMapLocation

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/middleware/exception_wrapper.rb', line 240

def initialize(location, template)
  super(location)
  @template = template
end

Instance Method Details

#spot(exc)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/middleware/exception_wrapper.rb', line 245

def spot(exc)
  if RubyVM::AbstractSyntaxTree.respond_to?(:node_id_for_backtrace_location) && __getobj__.is_a?(Thread::Backtrace::Location)
    location = @template.spot(__getobj__)
  else
    location = super
  end

  if location
    @template.translate_location(__getobj__, location)
  end
end