From: Josh Cheek Date: 2010-12-31T06:52:19+09:00 Subject: Re: How to hook a callback through inheritance --001485f92a88578fea0498a7afd7 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Dec 30, 2010 at 12:02 PM, Satsou Sa wrote: > > With this implementation, that means you can't add callbacks > > for individual objects, though. > > However, I am not sure to understand this point. I believe I can do it. > Here I tried to add different callbacks on different classes (and every > thing is working find): > > > I mean that you can't add a callback for a given instance of the class. Every instance of Lol will have the same before_laughing callbacks. It shouldn't be too much more work to give them the ability to have such behaviour, if you need it, I just thought I should point it out since your initial implementation seemed to assume that the @before_laughing was set on each instance. --001485f92a88578fea0498a7afd7--