Class: ActionDispatch::ExceptionWrapper::SourceMapLocation
- Inherits:
 - 
      Thread::Backtrace::Location
      
        
- Object
 - Thread::Backtrace::Location
 - ActionDispatch::ExceptionWrapper::SourceMapLocation
 
 
- Defined in:
 - lib/action_dispatch/middleware/exception_wrapper.rb
 
Overview
:nodoc:
Instance Method Summary collapse
- 
  
    
      #initialize(location, template)  ⇒ SourceMapLocation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of SourceMapLocation.
 - #spot(exc) ⇒ Object
 
Constructor Details
#initialize(location, template) ⇒ SourceMapLocation
Returns a new instance of SourceMapLocation.
      245 246 247 248  | 
    
      # File 'lib/action_dispatch/middleware/exception_wrapper.rb', line 245 def initialize(location, template) super(location) @template = template end  | 
  
Instance Method Details
#spot(exc) ⇒ Object
      250 251 252 253 254 255 256 257 258 259 260  | 
    
      # File 'lib/action_dispatch/middleware/exception_wrapper.rb', line 250 def spot(exc) if RubyVM::AbstractSyntaxTree.respond_to?(:node_id_for_backtrace_location) location = @template.spot(__getobj__) else location = super end if location @template.translate_location(__getobj__, location) end end  |