Stefan Lang
1/26/2008 9:27:00 PM
> Does anyone else of you know of a way to add "code rules"
> to some methods? Something like this would be cool:
Looks like a good use case for Aspect oriented programming.
AOP frameworks provide mechanisms to do exactly that.
There are (at least) two AOP frameworks on RubyForge:
aspectr and aquarium.
Otherwise it's fairly easy to create such a facility
from scratch via alias_method.