Module: Rake::Backtrace
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | lib/rake/backtrace.rb |
Constant Summary
-
SUPPRESSED_PATHS =
# File 'lib/rake/backtrace.rb', line 8SYS_PATHS. map { |s| s.tr("\\", "/") }. map { |f| File. (f) }. reject { |s| s.nil? || s =~ /^ *$/ }
-
SUPPRESSED_PATHS_RE =
# File 'lib/rake/backtrace.rb', line 12SUPPRESSED_PATHS.map { |f| Regexp.quote(f) }.join("|")
-
SUPPRESS_PATTERN =
# File 'lib/rake/backtrace.rb', line 16%r!(\A(#{SUPPRESSED_PATHS_RE})|bin/rake:\d+)!i
-
SYS_KEYS =
# File 'lib/rake/backtrace.rb', line 4RbConfig::CONFIG.keys.grep(/(?:[a-z]prefix|libdir)\z/)
-
SYS_PATHS =
# File 'lib/rake/backtrace.rb', line 5RbConfig::CONFIG.values_at(*SYS_KEYS).uniq + [ File.join(File.dirname(__FILE__), "..") ]
Class Method Summary
Class Method Details
.collapse(backtrace)
[ GitHub ]# File 'lib/rake/backtrace.rb', line 18
def self.collapse(backtrace) pattern = Rake.application. .suppress_backtrace_pattern || SUPPRESS_PATTERN backtrace.reject { |elem| elem =~ pattern } end