From: Chris Thiel Date: 2007-07-23T02:02:57+09:00 Subject: Re: How do you "undef_method" for a class method? ------=_Part_121810_414118.1185123780217 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Well, not sure if there's a more elegant approach to this (and there probably is) but one way to do it would be to open up the class itself and redfine the method to do nothing or raise an exception. I'm curious to see if there *is* another way to do this, though. Chris On 7/22/07, Dean Wampler wrote: > > Module#undef_method and Module#remove_method work fine for instance > methods, > but if you specify a class method, your get an error that it doesn't > exist. > (I'm using ruby 1.8.6.) > > Is there a way to do this? TIA. > > Dean > > -- > Dean Wampler > http://www.objectmentor.com > http://www.aspectprogramming.com > http://www.contract4j.org > ------=_Part_121810_414118.1185123780217--