Project

General

Profile

Actions

Bug #704

closed

delegate.rb will only delegate to specifically-named delegate object

Added by erikh (Erik Hollensbe) over 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
ruby -v:
Backport:
[ruby-core:19671]

Description

=begin
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.
=end


Files

patch.gz (274 Bytes) patch.gz erikh (Erik Hollensbe), 11/01/2008 07:56 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0