--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns an Array of Element children. An XPath may be supplied to filter the children. Only Element children are returned, even if the supplied XPath matches non-Element children.
- !ruby/struct:SM::Flow::VERB 
  body: " doc = Document.new '&lt;a&gt;sean&lt;b/&gt;elliott&lt;c/&gt;&lt;/a&gt;'\n doc.root.elements.to_a                  #-&gt; [ &lt;b/&gt;, &lt;c/&gt; ]\n doc.root.elements.to_a(&quot;child::node()&quot;) #-&gt; [ &lt;b/&gt;, &lt;c/&gt; ]\n XPath.match(doc.root, &quot;child::node()&quot;)  #-&gt; [ sean, &lt;b/&gt;, elliott, &lt;c/&gt; ]\n"
full_name: REXML::Elements#to_a
is_singleton: false
name: to_a
params: ( xpath=nil )
visibility: public
