diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-10 01:52:46 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-10 01:52:46 +0000 |
| commit | a0021cb2d75633068d8a7193559080c3c5cc5f98 (patch) | |
| tree | a05bbad584f495cd3cca4b99b0733348d98278b5 /lib | |
| parent | 5cb106435e680b99b849580d98a6c10d13d66b3e (diff) | |
| download | ruby-a0021cb2d75633068d8a7193559080c3c5cc5f98.tar.gz ruby-a0021cb2d75633068d8a7193559080c3c5cc5f98.tar.xz ruby-a0021cb2d75633068d8a7193559080c3c5cc5f98.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@20169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/delegate.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb index 353c68ee9..025e901a8 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -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} |
