Class: Riml::BacktraceFilter
- Inherits:
-
Object
- Object
- Riml::BacktraceFilter
- Defined in:
- lib/backtrace_filter.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
- #filter! ⇒ Object
-
#initialize(error) ⇒ BacktraceFilter
constructor
A new instance of BacktraceFilter.
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
#error ⇒ Object (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 |