* lib/delegate.rb (Delegator#method_missing): remove backtrace
lines _until_ `method_missing'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
749b3aa794
commit
78fea69776
@ -1,3 +1,8 @@
|
||||
Fri Oct 16 20:18:28 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/delegate.rb (Delegator#method_missing): remove backtrace
|
||||
lines _until_ `method_missing'.
|
||||
|
||||
Fri Oct 16 20:09:55 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/delegate.rb (Delegator#freeze): #freeze should freeze self
|
||||
|
@ -137,7 +137,9 @@ class Delegator
|
||||
target.__send__(m, *args, &block)
|
||||
end
|
||||
rescue Exception
|
||||
$@.delete_if{|s| %r"\A#{Regexp.quote(__FILE__)}:\d+:in `method_missing'\z"o =~ s}
|
||||
if i = $@.index{|s| %r"\A#{Regexp.quote(__FILE__)}:\d+:in `method_missing'\z"o =~ s}
|
||||
$@[0..i] = []
|
||||
end
|
||||
::Kernel::raise
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user