Ruby Nested Hash - Deep Fetch
It turns out that it is not that hard to implement the behaviour of fetch for fetching values (or returning a default) in nested hashes. Ruby Nested Hash - Deep Fetch - Returning a (Default) Value for a Key That Does Not Exist in a Nested Hash.
Post a comment