RubyGems.org

return_bang implements non-local exits for methods. As a bonus, you also get exception handling that ignores standard Ruby's inflexible begin; rescue; ensure; end syntax. Use return_bang to exit back to a processing loop from deeply nested code, or just to confound your enemies *and* your friends! What could possibly go wrong?

installgem install return_bang
Authors

Eric Hodel

1,000 total downloads 476 for this version
Owners

58479f76374a3ba3c69b9804163f39f4

Gemfile
gem "return_bang", "~> 1.1"
Versions
  1. 1.1 April 1, 2012
  2. 1.0 December 21, 2011