From: Urabe Shyouhei Date: 2012-07-24T11:49:01+09:00 Subject: [ruby-core:46706] Re: [ruby-trunk - Feature #4840] Allow returning from require On 2012���07���24��� 11:42, Trans wrote: >>> How about redefining `__END__` to allow to call it as a method? >> >> It has compatibility issue that __END__ is related to DATA. > > Then what about `__end__`? > > Tangentially, why not deprecate __END__? Is there some really > important use case that we just can't live without? The whole idea > strikes me as rather hackish, especially considering it is limited to > main file. I'd be much appreciated if __END__ was usable from a library file. I'd write a tiny loader script and place obfuscated script body on __END__ then.