From: Pit Capitain Date: 2005-09-12T03:47:27+09:00 Subject: Re: r4 - the simplest ruby pre-processor Ara.T.Howard schrieb: > a version which optionally interpolates - six lines, ergo r6 > ... > src = ARGF.readlines.map{|l| l =~ %r/^\s*\|(.*)/ ? $1 : (interp ? > "puts \"#{ l.chomp }\"" : "puts #{ l.chomp.dump }")} > ... Just a minor simplification: ARGF is kind of an Enumerable, so you can omit the call to readlines. BTW: nice idea. Regards, Pit