Will there be a way to get a function called on -every-
possible method call, or will we just have to do ..
ObjectSpace.each(Class) { |c|
methods.each { |m|
eval """
class #{c.to_s}
def #{m}:pre(*args)
puts \"pre for #{c.to_s}::#{m}\"
end
end
"""
}
}
AFAIK the AOP guys still have to list every function
they want wrapped...?
···
--
spooq
Thank you for your quick answer. Next time Im in Japan,
I would like to buy you a beer to say thank you for Ruby 
···
On Thu, 17 Feb 2005 13:26:17 +0900, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
Hi,
In message "Re: question about rite" > on Thu, 17 Feb 2005 11:33:15 +0900, Luke Graham <spoooq@gmail.com> writes:
>Will there be a way to get a function called on -every-
>possible method call, or will we just have to do ..
I feel like that wild card wrapping is not common enough to support
explicitly.
matz.
--
spooq