Class: TDPXML::XMLParser::XArray
- Inherits:
-
Array
- Object
- Array
- TDPXML::XMLParser::XArray
- Defined in:
- lib/tdp/xml.rb
Instance Method Summary collapse
Instance Method Details
#===(ary) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/tdp/xml.rb', line 20 def ===(ary) if super(ary) return true end if !ary.is_a?(Array) return false end each_with_index{|v,idx| case ary[idx] when v else return false end } true end |