Does anyone know a good way to remove a method from an object programatically?
For example
ArbitraryObject removeMethod: #method1.
There are many "...Refactory...." or "...Refactoring" objects out there, but I can't seem to figure any of them out...
Rob
Never mind, I guess...one more try got me:
RefactoringBrowser new removeMethodsSafe: #(#method1) from: ArbitraryObject.
Rob
On Wed, May 21, 2008 at 8:43 AM, Rob Rothwell r.j.rothwell@gmail.com wrote:
Does anyone know a good way to remove a method from an object programatically?
For example
ArbitraryObject removeMethod: #method1.
There are many "...Refactory...." or "...Refactoring" objects out there, but I can't seem to figure any of them out...
Rob
"Rob" == Rob Rothwell r.j.rothwell@gmail.com writes:
Rob> Never mind, I guess...one more try got me: Rob> RefactoringBrowser new removeMethodsSafe: #(#method1) from: ArbitraryObject.
Well, that's a higher-level view. But whenever you think "methods" think "Behavior" class, because (nearly) anything that has a method dictionary eventually inherits from there. Notice the protocol category "adding/removing methods", and below that, #removeSelector:. It even has a comment, although that's about traits. :)
On Wed, May 21, 2008 at 9:46 AM, Randal L. Schwartz merlyn@stonehenge.com wrote:
Well, that's a higher-level view. But whenever you think "methods" think "Behavior" class, because (nearly) anything that has a method dictionary eventually inherits from there.
Thanks...this is a good place to look...
Rob
beginners@lists.squeakfoundation.org