A class which provides filtering of children for Elements, and XPath search support. You are expected to only encounter this class as the element.elements object. Therefore, you are not expected to instantiate this yourself.
element.elements
[]=( index, element ) Instance Public methods Sets an element, replacing any
collect( xpath=nil ) Instance Public methods
delete(element) Instance Public methods Deletes a child
empty?() Instance Public methods Returns true if there are no
add(element=nil) Instance Public methods Adds an element
each( xpath=nil ) Instance Public methods Iterates through all of the child
size() Instance Public methods Returns the number of Element children
to_a( xpath=nil ) Instance Public methods Returns an Array of
inject( xpath=nil, initial=nil ) Instance Public methods
index(element) Instance Public methods Returns the index of the supplied child
Page 1 of 2