class REXML::Attributes

def length


ele.attributes.length # => 3
ele = d.root.elements['//ele'] # =>
d = REXML::Document.new(xml_string)
EOT



xml_string = <<-EOT

Returns the count of attributes:

length
:call-seq:
def length
  c = 0
  each_attribute { c+=1 }
  c
end