The break keyword is a useful tool for ending a loop early, but it can do more than that. Avdi Grimm shows us how you can use break with a value to provide useful information from inside a loop or method.
Avdi is the creator of RubyTapas, a twice-weekly screencast series covering a wide variety of intermediate to advanced Ruby concepts and techniques, as well as core Object-Oriented design principles. For more, check out rubytapas.com
You need to be an enrolled student in order to view this video and subscribe.Enroll Now