george.moschovitis at gmail.com
Wed Aug 29 10:14:24 EDT 2007
Lets go for the later then...
On 8/29/07, Trans <transfire at gmail.com> wrote:
> On Aug 28, 9:23 pm, "George Moschovitis"
> <george.moschovi... at gmail.com> wrote:
> > > Should it be 'BEFORE:y' or just 'y' b/c Y#x overrides everything in X?
> > I would say 'BEFORE:y' but I am not really sure. Which is easier to
> > implement?
> The later is easier. The difficulty with the 'BEFORE:y' is if #super
> is called. The method in class Y runs the advice and then the method
> in the superclass runs it again. So to do it, I have to figure out a
> way for it to only run once.
> Nitro-general mailing list
> Nitro-general at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nitro-general