Ruby: control flow with throw and catch

Updated . Posted . Visible to the public.

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.

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

Daniel Straßner
Last edit
Emanuel
License
Source code in this card is licensed under the MIT License.
Posted by Daniel Straßner to makandra dev (2017-12-19 14:45)