On 03 Jun 2005, at 10:39, James Edward Gray II wrote:

> On Jun 3, 2005, at 11:40 AM, Dave Burt wrote:
>
>> Perl has something called "source filters" (see perl doco  
>> "perlfilter"),
>> which apply a transformation to following source code, kind of like a
>> preprocessor. This would be an ideal way of dealing with this  
>> situation, and
>> avoid doing File.read($0).
>
> Yeah, this is an interesting if probably evil feature.  I wasn't  
> sure how feasible something like this was, or wasn't in Ruby.  I  
> would like to see a source filter library for Ruby, even if it is  
> bad style.

I believe ParseTree can provide some of that for you.

-- 
Eric Hodel - drbrain / segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04