module Rake::Backtrace

Constants

SUPPRESSED_PATHS
SUPPRESSED_PATHS_RE
SUPPRESS_PATTERN
SYS_KEYS
SYS_PATHS

Public Class Methods

collapse(backtrace) click to toggle source
# File lib/rake/backtrace.rb, line 14
def self.collapse(backtrace)
  pattern = Rake.application.options.suppress_backtrace_pattern ||
            SUPPRESS_PATTERN
  backtrace.reject { |elem| elem =~ pattern }
end