# File lib/mocha/backtrace_filter.rb, line 7 def initialize(lib_directory = LIB_DIRECTORY) @path_pattern = Regexp.new(lib_directory) end
# File lib/mocha/backtrace_filter.rb, line 11 def filtered(backtrace) backtrace.reject { |location| @path_pattern.match(File.expand_path(location)) } end