method

length

v1_8_7_72 - Show latest stable - Class: REXML::Attributes
length()
public

Returns the number of attributes the owning Element contains.

 doc = Document "<a x='1' y='2' foo:x='3'/>"
 doc.root.attributes.length        #-> 3