module Hashie::Extensions::DeepFind
def deep_find(key)
my_hash[:user] = {location: {address: '123 Street'}}
my_hash = MyHash.new
end
include Hashie::Extensions::DeepFind
class MyHash < Hash
options.deep_find(:address) # => '123 Street'
options.extend(Hashie::Extensions::DeepFind)
options = {user: {location: {address: '123 Street'}}}
a key and returns the first occurrence of the key.
Performs a depth-first search on deeply nested data structures for
def deep_find(key) _deep_find(key) end