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

Conversation

michaelherold
Copy link
Member

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]

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]
@dblock
Copy link
Member

dblock commented Aug 22, 2014

This is pefect, rebased and merged in 36ece58.

@dblock dblock closed this Aug 22, 2014
@michaelherold michaelherold deleted the deep-find branch August 26, 2014 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could not fetch path
2 participants