From: transfire@... Date: 2006-07-14T22:14:20+09:00 Subject: HELP IMPROVE #instance_interception dblack@wobblini.net wrote: > Hi -- > > On Fri, 14 Jul 2006, transfire@gmail.com wrote: > > > I have been working on this and was hoping maybe others would like to > > take some wacks at it. It's a general purpose tool for prepending a > > module in the inheritance chain. Here's an example of it's use. (code > > follows): > > > > module A > > def f ; "F" ; end > > def g ; "G" ; end > > Well, the golf part is easy, but I don't think it looks very good: > > module A;def f;"F";end;def g;"G";end;end > > Are you sure you want to golf this? :-) Well, okay. I guess golf isn't exactly what I mean. Just *improve" then. Thanks. BTW, typo in example: x.g #=> "#{G}" should be x.g #=> "{G}" T.