Method: WebConsole::ExceptionMapper.find_binding

Defined in:
lib/web_console/exception_mapper.rb

.find_binding(mappers, exception_object_id) ⇒ Object



17
18
19
20
21
# File 'lib/web_console/exception_mapper.rb', line 17

def self.find_binding(mappers, exception_object_id)
  mappers.detect do |exception_mapper|
    exception_mapper.exc.object_id == exception_object_id.to_i
  end || mappers.first
end