From: Stefan Lang Date: 2008-01-27T06:26:42+09:00 Subject: Re: Adding code/Extending methods after they have been written? > 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.