module Docile::BacktraceFilter
@api private
This is used to remove entries pointing to Docile's source files from {Exception#backtrace} and {Exception#backtrace_locations}.
If {NoMethodError} is caught then the exception object will be extended by this module to add filter functionalities.
Constants
- FILTER_PATTERN
Public Instance Methods
backtrace()
click to toggle source
Calls superclass method
# File lib/docile/backtrace_filter.rb, line 14 def backtrace super.reject { |trace| trace =~ FILTER_PATTERN } end
backtrace_locations()
click to toggle source
Calls superclass method
# File lib/docile/backtrace_filter.rb, line 19 def backtrace_locations super.reject { |location| location.absolute_path =~ FILTER_PATTERN } end