Issue #4840 has been reported by Rodrigo Rosenfeld Rosas.

----------------------------------------
Feature #4840: Allow returning from require
http://redmine.ruby-lang.org/issues/4840

Author: Rodrigo Rosenfeld Rosas
Status: Open
Priority: Normal
Assignee: 
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://redmine.ruby-lang.org