Module: Honeybadger::Plugins::LocalVariables::ExceptionExtension Private

Defined in:
lib/honeybadger/plugins/local_variables.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#__honeybadger_bindings_stackObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


21
22
23
# File 'lib/honeybadger/plugins/local_variables.rb', line 21

def __honeybadger_bindings_stack
  @__honeybadger_bindings_stack || []
end

#set_backtrace_with_honeybadger(*args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


13
14
15
16
17
18
19
# File 'lib/honeybadger/plugins/local_variables.rb', line 13

def set_backtrace_with_honeybadger(*args, &block)
  if caller.none? { |loc| loc.match(::Honeybadger::Backtrace::Line::INPUT_FORMAT) && Regexp.last_match(1) == __FILE__ }
    @__honeybadger_bindings_stack = binding.callers.drop(1)
  end

  set_backtrace_without_honeybadger(*args, &block)
end