From: Robert Feldt Date: 2001-05-08T00:27:29+09:00 Subject: [ruby-talk:14781] Re: AW: Re: SimpleDelegator assymetry On Tue, 8 May 2001, Wyss Clemens wrote: > ...does your solution remove obsolete methods? > No because I couldn't think of a tried-and-tested way of undef'ing Singleton methods. Maybe there is some way? However, it works anyway since the same exceptions are raised. It should be done though... > I.e. methods which are no more to be delegated? > > I have a somewhat "not so fast solution" ;-): > Yes, this is another nice thing, ie. dynamic delegation so that methods added to the delegatee at run-time is available to the delegating object. Maybe we should add all these different schemes in different classes? (StaticInitDelegator, StaticDelegator and DynamicDelegator?) I'm a bit pussled by the following comment in delegate.rb though: # Delegation class that delegates even methods defined in super class, # which can not be covered with normal method_missing hack. Does your solution address this? Or is it obsolete? /Robert