From: Trans Date: 2005-07-29T23:41:01+09:00 Subject: Re: Hooking Class Methods Charles Steinman wrote: > Module#method_added is called when a new method is added to the > module's collection of methods. When you define a method as > SomeModule.method_name, you're not adding a method to the module's > collection, you're adding a singleton method to the SomeModule object. > You could do the same for any object, which is why Object contains > singleton_method_added. Thanks. What I found strange was that def self.method_added is a singleton method too. So I thought it would hook singleton method creation. I see now that this isn't the case b/c singletons "shadow" the real methods. So this wouldn't work. Hence the seperate method. T.