Sometimes we'd like to know sooner rather than later if our assumptions about data are incorrect. When the assumptions are about keys or indexes in Ruby collections, we can fail early with the `fetch` method.
This video was originally published in 2012 as RubyTapas episode #8, and is now part of the "Crystaline Ruby" Garden Path at Graceful.Dev: https://graceful.dev/courses/crystali...
Get two weeks of Graceful.Dev Pro for free: https://graceful.dev/youtube