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.
Class Method Summary collapse
- .included(base) ⇒ Object private
Instance Method Summary collapse
- #__honeybadger_bindings_stack ⇒ Object private
- #set_backtrace_with_honeybadger(*args, &block) ⇒ Object private
Class Method Details
.included(base) ⇒ 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.
8 9 10 11 |
# File 'lib/honeybadger/plugins/local_variables.rb', line 8 def self.included(base) base.send(:alias_method, :set_backtrace_without_honeybadger, :set_backtrace) base.send(:alias_method, :set_backtrace, :set_backtrace_with_honeybadger) end |
Instance Method Details
#__honeybadger_bindings_stack ⇒ 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.
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 |