From: Evan Webb Date: 2005-04-05T04:58:51+09:00 Subject: Re: Wrote "Hookable" mixin, what now? To chime in, perhaps we should look to merge Hookable and the class that I've been working on, called Maskable. It has a similar aim, allows you to attach new methods to run with an original method. Maskable was designed as a replacement for 'alias :old_thing :thing' as it's not extensible when there is a method that is commonly modified (like Kernel.require). With a few tweaks from the Hookable code, it'd be possible to add the hook style stuff too. Maskable is thread safe as well. Maskable is at http://hoshi.fallingsnow.net/svn/maskable/maskable.rb It should be noted that maskable hasnt undergone extensive testing. There are examples of Maskable at the bottom of the maskable.rb. Thoughts? Evan On Apr 4, 2005 12:54 PM, Jan 'jast' Krueger wrote: > > An example of something that should be improved: there's a major annoyance > > in Hookable::Wrapper that is mentioned in the RDoc documentation (see below). > > I forgot another deficiency that's not included in the documentation > yet--Hookable is not thread-safe. I see no way to fix this without > completely changing the interface, though. > > -- > Best regards, > Jan 'jast' Krueger , Aachen, Germany > (mails to go through less strict spam checking) > >