module Rake::Backtrace

Constants

SUPPRESSED_PATHS
SUPPRESS_PATTERN

Public Class Methods

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