From: Brad Phelan Date: 2007-05-30T14:00:16+09:00 Subject: Re: How to adopt "Python Style" indentation for Ruby Trans wrote: > > On May 29, 3:50 pm, Brad Phelan wrote: >>> This is absurdly cool. How does it work? >>> Oh I get it: >>>> The trick to the new version is to use the __END__ keyword >>>> to block the Ruby scanner and then reload the current file after >>>> doing the preprocessing. >>> That's awesome! Sick and wrong in the best possible way. And **simple!** >> Sick, wrong and simple but unfortunately not my idea. There is a library >> hanging around called hyphen-ruby which showed me the dark path. >> >> B > > Actually you can do this without even using the __END__. pyrb.rb can > exit the process so it will never reach the rest of the original file. > > T. > > I don't think that will work. I believe that Ruby will syntax check the entire file before trying to execute any of it. -- Brad Phelan http://xtargets.com