How to use Hash#fetch to provide defaults for missing keys, and why you might prefer that to other techniques for defaulting values.
How to use Hash#fetch to provide defaults for missing keys, and why you might prefer that to other techniques for defaulting values.