Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hashie::Extensions::DeepFind #209

Closed
wants to merge 1 commit into from

Commits on Aug 22, 2014

  1. 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 hashie#156]
    michaelherold committed Aug 22, 2014
    Configuration menu
    Copy the full SHA
    9d710b5 View commit details
    Browse the repository at this point in the history