1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<!DOCTYPE class>
<class name='Attributes' extends='Hash'>
A class that holds the Attributes of an Element.
<method name='initialize'>
Constructor
</method>
<method name='[]'>
<return>
A String, which is the value of the first matching attribute, or nil if there was none
</return>
Fetches an attribute value. If you want to get the Attribute itself, use get_attribute()
</method>
<method name='each_attribute'/>
<method name='get_attribute'>
<return>
The first matching Attribute, or nil if there was none
</return>
Fetches an attribute
</method>
<method name='[]='>
<return>
self NOTE that unlike most REXML methods, this does not return the set Attribute.
</return>
Sets an attribute, overwriting any existing attribute value by the same name
</method>
<method name='prefixes'/>
<method name='delete'>
<return>
the removed attribute
</return>
Removes an attribute
</method>
<method name='add'>
Adds an attribute, overriding any existing attribute by the same name.
</method>
<alias alias='<<' orig='add'>
</alias>
<method name='delete_all'>
<return>
an Array of the Attributes that were removed
</return>
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
</method>
<method name='literalize'>
Private helper class.
</method>
</class>
|