Object
# File lib/van/units/base.rb, line 44 44: def self.with_clean_backtrace(regex) 45: begin 46: yield 47: rescue ::Exception 48: $!.clean_backtrace(regex).clean_backtrace("with_clean_backtrace") if not $DEBUG 49: raise 50: end 51: end
# File lib/van/units/base.rb, line 38 38: def clean_backtrace(regex) 39: regex = /^#{::Regexp.escape(__FILE__)}:\d+:in `#{::Regexp.escape(regex)}'$/ if regex.is_a? ::String 40: set_backtrace(backtrace.reject { |a| regex =~ a }) 41: self 42: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.