mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/delegate.rb (Delegator.delegating_block): should not refer
DelegateClass specific @delegate_dc_obj. a patch from Erik Hollensbe in [ruby-core:19671]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
703c1825eb
commit
504abcc00f
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Nov 10 10:50:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/delegate.rb (Delegator.delegating_block): should not refer
|
||||
DelegateClass specific @delegate_dc_obj. a patch from Erik
|
||||
Hollensbe in [ruby-core:19671].
|
||||
|
||||
Mon Nov 10 09:54:21 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (ifs_open_socket): should retry without proto_buffer
|
||||
|
|
|
@ -234,7 +234,7 @@ end
|
|||
def Delegator.delegating_block(mid)
|
||||
lambda do |*args, &block|
|
||||
begin
|
||||
@delegate_dc_obj.__send__(mid, *args, &block)
|
||||
__getobj__.__send__(mid, *args, &block)
|
||||
rescue
|
||||
re = /\A#{Regexp.quote(__FILE__)}:#{__LINE__-2}:/o
|
||||
$!.backtrace.delete_if {|t| re =~ t}
|
||||
|
|
Loading…
Reference in a new issue