class Hash
monkey patch
monkey patches
Public Instance Methods
deep_find(key, object=self, found=[])
click to toggle source
# File lib/ebsco/eds/record.rb, line 1029 def deep_find(key, object=self, found=[]) if object.respond_to?(:key?) && object.key?(key) found << object[key] end if object.is_a? Enumerable found << object.collect { |*a| deep_find(key, a.last) } end found.flatten.compact end
deep_find_results(key, object=self, found=[])
click to toggle source
# File lib/ebsco/eds/info.rb, line 219 def deep_find_results(key, object=self, found=[]) if object.respond_to?(:key?) && object.key?(key) found << object[key] end if object.is_a? Enumerable found << object.collect { |*a| deep_find(key, a.last) } end found.flatten.compact end