DEV Community

Alfredo Motta
Alfredo Motta

Posted on • Originally published at alfredo.motta.name

Making Ruby Hash#dig even more awesome. Introducing Hash#dig_and_collect

In this blog post I will introduce Hash#dig_and_collect, a simple utility method that is built on top of Hash#dig to help you navigate nested hashes mixed up with arrays.

Check out the full story here:
http://www.alfredo.motta.name/making-ruby-hashdig-even-more-awesome-introducing-hashdig_and_collect/

Top comments (0)