Class: TDPXML::XMLParser::XHash
- Inherits:
-
Hash
- Object
- Hash
- TDPXML::XMLParser::XHash
- Defined in:
- lib/tdp/xml.rb
Instance Method Summary collapse
Instance Method Details
#===(h) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/tdp/xml.rb', line 39 def ===(h) if super(h) return true end if !h.is_a?(Hash) return false end each{|k,v| case h[k] when v else return false end } true end |