From: eden li Date: 2007-04-16T11:05:46+09:00 Subject: Re: Undefining a method? You have two choices: * undef_method * remove_method The first prevents any and all calls to the passed in method; the latter removes the method for just the given module which allows calls to be made into the superclass. See the docs: ri undef_method On Apr 16, 8:51 am, Ben Johnson wrote: > Is it possible to undefine a method. For example: > > class A > def method > end > end > > A.undefine_method(:method) > > Is this possible? > > I need to do this because I'm dynamically building methods into a class > and it would make everything cleaner. > > -- > Posted viahttp://www.ruby-forum.com/.