From: Charles Oliver Nutter Date: 2011-06-08T18:24:36+09:00 Subject: [ruby-core:36840] Re: [Ruby 1.9 - Feature #4840][Open] Allow returning from require On Wed, Jun 8, 2011 at 4:22 AM, Ryan Davis wrote: > How about raising a specific exception that is rescued by #require instead? > > class AbortRequire < StandardError; end ... > raise AbortRequire if defined? GitoriousConfig That's pretty clean too. Name needs work ;) I almost suggested a special catch tag that all requires wrap, but catch/throw is a little arcane for most folks... - Charlie