From: "alexeymuranov (Alexey Muranov)" Date: 2012-07-24T16:52:19+09:00 Subject: [ruby-core:46714] [ruby-trunk - Feature #4840] Allow returning from require Issue #4840 has been updated by alexeymuranov (Alexey Muranov). ko1 (Koichi Sasada) wrote: > (2012/07/24 0:44), alexeymuranov (Alexey Muranov) wrote: > > > > How about redefining `__END__` to allow to call it as a method? > > It has compatibility issue that __END__ is related to DATA. > > -- > // SASADA Koichi at atdot dot net Then a keyword `__DATA__` can be added to explicitly mark the beginning of `DATA`, what do you think? Here is a related request: http://www.ruby-forum.com/topic/217535 ---------------------------------------- Feature #4840: Allow returning from require https://bugs.ruby-lang.org/issues/4840#change-28381 Author: rosenfeld (Rodrigo Rosenfeld Rosas) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: I have a situation where there is some code in Gitorious like: unless defined? GitoriousConfig # tons of lines here end And I would it to look like return if defined? GitoriousConfig #tons of lines here It would be great to allow return from a required file or some other keyword (break, etc or a new one) -- http://bugs.ruby-lang.org/