Class: RSpock::Minitest::BacktraceFilter
- Inherits:
-
Object
- Object
- RSpock::Minitest::BacktraceFilter
- Defined in:
- lib/rspock/minitest/backtrace_filter.rb
Instance Method Summary collapse
- #filter(backtrace) ⇒ Object
-
#initialize ⇒ BacktraceFilter
constructor
A new instance of BacktraceFilter.
Constructor Details
#initialize ⇒ BacktraceFilter
Returns a new instance of BacktraceFilter.
7 8 9 |
# File 'lib/rspock/minitest/backtrace_filter.rb', line 7 def initialize @backtrace_filter = RSpock::BacktraceFilter.new end |
Instance Method Details
#filter(backtrace) ⇒ Object
11 12 13 |
# File 'lib/rspock/minitest/backtrace_filter.rb', line 11 def filter(backtrace) backtrace.map { |line| @backtrace_filter.filter_string(line) } end |