Module: XML::XMLRPC::Parser::ValueParser::Array
- Defined in:
- lib/xml/libxml/xmlrpc/parser.rb
Overview
Parse an ‘array’ type.
Class Method Summary collapse
Class Method Details
.parse(node) ⇒ Object
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
# File 'lib/xml/libxml/xmlrpc/parser.rb', line 273 def self.parse(node) value = [] node.each_child do |child_node| if child_node.name == "data" value_nodes = [] child_node.each_child do |value_node| if value_node.name == "value" value_nodes.push value_node end end value = Parser::ValueParser.parse(value_nodes) break # yes, first hit is last hit, so says the stay-puff't spec. end end return value end |