Read more

Ruby: control flow with throw and catch

Daniel Straßner
December 19, 2017Software engineer at makandra GmbH

This article Show archive.org snapshot will show you how to use throw and catch. It's a nice tool to break out of multiple loops when a result is obtained.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Also see our card Ruby: A small summary of what return, break and next means for blocks.

Posted by Daniel Straßner to makandra dev (2017-12-19 15:45)