Hash#transform_keys

Ruby 2.5 introduced several new methods. Everyone is happy for yield_self (don’t get my wrong, me too), but I’m very excited for one I’ve been waiting for: Hash#transform_keys. It does exactly what it name implies, it provides a way to transform each key on the Hash. What’s the use for this? well, let’s explore one…

Read More