From: Charles Steinman Date: 2005-07-19T09:40:54+09:00 Subject: Re: Removing Instance Methods Brian Takita wrote: > > But maybe there's a simpler way to do this... > Is there? It seems like there should be a way to do this without > resorting to an eval statement? The code snippets offered don't use eval. They open the object's singleton class and remove the method. There isn't really any more straightforward way (since that is exactly what you want to do). If you want to do it more concisely, you could add a remove_method to Object that does this internally. > How does Ruby itself remove methods when parsing remove_method? Looking at eval.c, it looks like it just deletes the method from the class' method table.