From: Adam Shelly Date: 2006-07-19T06:31:09+09:00 Subject: Re: local methods and local instance variables [was super's not so super today] On 7/18/06, Trans wrote: > On a side note I think I found a bug in Ruby, maybe > > class << X > undef_method :method_added > end > > class X > def y; end > end > => NoMethodError: undefined method `method_added' for X:Class > > You get the same error even if you don't override method_added first. It looks like the call to method_added is hard-coded in rb_add_method() in eval.c.. (also in rb_alias()) It seems like a bug to me - the c code should check that callback methods still exist before calling them. -Adam