From: Daniel Berger Date: 2005-11-29T01:54:47+09:00 Subject: Re: AOP in Ruby ... Ed Howland wrote: > On 11/28/05, Mark Collins-Cope wrote: > >>Hi there, >> >>I was wondering if there is any support (in the form of frameworks or >>whatever) for AOP in Ruby? > > > There is Cut, as defined in RCR 321 http://www.rcrchive.net/rcr/show/321%22 > > I've tried this out and it seems to work fairly well in my limited > exposure. Cuts are > transparent subclasses. While the technique in Christian'a reply > works, Cut is more broad based. You can reuse aspects by enclosing > them in modules, and apply the Cut class across ObjectSpace to have > system-wide aspects. > > Ed > > >>Ciao, >>Mark. I think I prefer the Sydney approach to AOP, which uses Behaviors: http://hoshi.fallingsnow.net/svn/sydney/trunk/lib/behavior/aop.rb Regards, Dan