Parent

Methods

Class Index [+]

Quicksearch

Mocha::BacktraceFilter

Constants

LIB_DIRECTORY

Public Class Methods

new(lib_directory = LIB_DIRECTORY) click to toggle source
   # File lib/mocha/backtrace_filter.rb, line 7
7:     def initialize(lib_directory = LIB_DIRECTORY)
8:       @path_pattern = Regexp.new(lib_directory)
9:     end

Public Instance Methods

filtered(backtrace) click to toggle source
    # File lib/mocha/backtrace_filter.rb, line 11
11:     def filtered(backtrace)
12:       backtrace.reject { |location| @path_pattern.match(File.expand_path(location)) }
13:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.