From: Albert Wagner Date: 2001-08-23T11:29:30+09:00 Subject: [ruby-talk:20143] Re: Another Possible RCR - Wrappers via Mixins Cool! I could use that. On Wednesday 22 August 2001 20:16, you wrote: > But I think your proposal is interesting. I was going to accomplish > it (if I do), by using method combination ala CLOS. > > Note it's just an idea, syntax is not fixed: > > module WrapFred > def fred :before > puts "1" > end > def fred :after > puts "2" > end > end > > include WrapFred > > def fred > puts "hello" > end > > will print > > 1 > hello > 2 > matz.