# File lib/eim_xml.rb, line 195 def find(obj, dst=Element.new(:found)) return find(Element.new(obj, dst)) if dst.is_a?(Hash) dst << self if match(obj) @contents.each do |i| case when i.is_a?(Element) i.find(obj, dst) when obj.is_a?(Module) && i.is_a?(obj) dst << i end end dst end