Bug #704: delegate.rb will only delegate to specifically-named delegate object
http://redmine.ruby-lang.org/issues/show/704

Author: Erik Hollensbe
Status: Open, Priority: Normal
Target version: 1.9.1

long story short, I needed to redefine __getobj__ and __setobj__ for a porting effort for a class that inherited from DelegateClass. The new ivar that __getobj__ and __setobj__ accessed was not able to be used by Delegator.delegating_block because the ivar is assumed to be named what the default is, and __send__ is called against that.

Included is a patch which uses __getobj__ to get that value instead.


----------------------------------------
http://redmine.ruby-lang.org