From: Robert Feldt Date: 2006-03-31T23:41:47+09:00 Subject: Re: Redef undef'ed methods? On 3/31/06, Robert Dober wrote: > On 3/31/06, Florian Gro� wrote: > > > > > > > > > > class A > alias_method :b, :a > undef_method :a > end > > ... > > class A > alias_method :a, :b > end > > Obviously I missed something ;)! > Yes, that will work around. Also you can do it with define_method if you have a handle to the undef'ed method. However, these "holes" can be covered by undef'ing more methods (ie alias_method etc) so it might still be a useful technique for some situations. Thanks, Robert Feldt