DEV Community

Alfredo Motta
Alfredo Motta

Posted on • Originally published at alfredo.motta.name

2

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)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay