From: dblack@... Date: 2006-07-14T22:04:06+09:00 Subject: Re: GOLF (and improve) #instance_interception 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? :-) David -- http://www.rubypowerandlight.com => Ruby/Rails training & consultancy http://www.manning.com/black => RUBY FOR RAILS (reviewed on Slashdot, 7/12/2006!) http://dablog.rubypal.com => D[avid ]A[. ]B[lack's][ Web]log dblack@wobblini.net => me