>> 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.