luni, 27 februarie 2017

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


In this blog post I will introduce [crayon-58b448bae3db5164155809-i/] , a simple utility method that is built on top of [crayon-58b448bae3ddb695493660-i/] to help you navigate nested hashes mixed up with arrays. Why Hash#dig is great The introduction of the [crayon-58b448bae3de7675738901-i/] method in Ruby 2.3 completely changed the way I navigate deeply nested hashes. For example, given this [crayon-58b448bae3df2107277713-i/] : [crayon-58b448bae3dfc463663954/] to […]

Niciun comentariu:

Trimiteți un comentariu