From: Trans Date: 2007-05-30T08:37:28+09:00 Subject: Re: How to adopt "Python Style" indentation for Ruby 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.