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.
Posted by Daniel Straßner to makandra dev (2017-12-19 14:45)