From: Paul Brannan Date: 2001-11-01T02:36:19+09:00 Subject: [ruby-talk:23992] Re: Strangeness with undefining methods On Thu, 1 Nov 2001, ts wrote: > >>>>> "P" == Paul Brannan writes: > > P> If 'foo' is already removed, then why do I get the "discarding old foo" > P> message? > > foo is not removed just undef, try > > class Object; remove_method :foo; end Ahh, that makes sense, thanks. In what real world situation might I use undef instead of remove_method? And when I undef a method, where does the method go, since I can't call it? (I've noticed that I can still call remove_method after an undef). Paul