class Attributes

Extends Hash
A class that holds the Attributes of an Element.

Methods


Aliases

<<

is a synonym for

add

Methods

[]

Returns A String, which is the value of the first matching attribute, or nil if there was none
Fetches an attribute value. If you want to get the Attribute itself, use get_attribute()

[]=

Returns self NOTE that unlike most REXML methods, this does not return the set Attribute.
Sets an attribute, overwriting any existing attribute value by the same name

add


Adds an attribute, overriding any existing attribute by the same name.

delete

Returns the removed attribute
Removes an attribute

delete_all

Returns an Array of the Attributes that were removed
DO NOT USE THIS METHOD! It WILL fail, and may be removed. If you absolutely need this method, write the author. Deletes all attributes matching an xpath

each_attribute


get_attribute

Returns The first matching Attribute, or nil if there was none
Fetches an attribute

initialize


Constructor

literalize


Private helper class.

prefixes