Class: Riml::BacktraceFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/backtrace_filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ BacktraceFilter

Returns a new instance of BacktraceFilter.



5
6
7
# File 'lib/backtrace_filter.rb', line 5

def initialize(error)
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



3
4
5
# File 'lib/backtrace_filter.rb', line 3

def error
  @error
end

Instance Method Details

#filter!Object



9
10
11
# File 'lib/backtrace_filter.rb', line 9

def filter!
  error.backtrace.clear
end