summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorMichael Herold <michael.j.herold@gmail.com>2014-08-22 09:27:46 -0500
committerdblock <dblock@dblock.org>2014-08-22 14:58:42 -0400
commit36ece586655fd067eb3cb42b07693ce3d8f442e3 (patch)
tree65e0665a61f24afb5afde7bb3a68eda4e2bb3326 /Gemfile
parent05aee4d5b8b842729fcd3a91fa26253e7ddb3f91 (diff)
downloadhashie-36ece586655fd067eb3cb42b07693ce3d8f442e3.tar.gz
Add Hashie::Extensions::DeepFind
This extension adds a `#deep_find` (aliased as `#deep_detect`) and a `#deep_find_all` (aliased as `#deep_select`) method to any Hash-like object. These methods perform a depth-first search on the object and its values and return either the first occurrence (for `#deep_find`) or an array of all occurrences (for `#deep_find_all`) within the nested structure of the hash. They work for nested Hash-like objects and nested Enumerables. [Closes #156]
Diffstat (limited to 'Gemfile')
0 files changed, 0 insertions, 0 deletions