method

size

v1_9_1_378 - Show latest stable - Class: REXML::Elements
size()
public

Returns the number of Element children of the parent object. doc = Document.new ‘<a>seanelliottrussell’ doc.root.size #-> 6, 3 element and 3 text nodes doc.root.elements.size #-> 3