class REXML::Attributes
def to_a
attrs.first.class # => REXML::Attribute
attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<']
ele = d.root.elements['//ele'] # =>
d = REXML::Document.new(xml_string)
EOT
xml_string = <<-EOT
the attributes:
Returns an array of \REXML::Attribute objects representing
to_a -> array_of_attribute_objects
:call-seq:
def to_a enum_for(:each_attribute).to_a end