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
|
<!DOCTYPE class>
<class name='Attribute'>
Defines an Element Attribute; IE, a attribute=value pair, as in: <element attribute="value"/>. Attributes can be in their own namespaces. General users of REXML will not interact with the Attribute class much.
<include name='Node'>
</include>
<include name='Namespace'>
</include>
<attribute name='value' type='accessor'/>
<attribute name='element' type='reader'/>
<method name='initialize'>
Constructor.
</method>
<method name='prefix'/>
<method name='namespace'/>
<method name='=='>
<return>
true if other is an Attribute and has the same name and value, false otherwise.
</return>
</method>
<method name='hash'>
Creates (and returns) a hash from both the name and value
</method>
<method name='to_s'/>
<method name='clone'/>
<method name='element='>
<return>
this attribute
</return>
Sets the element of which this object is an attribute
</method>
<method name='remove'>
Removes this Attribute from the tree, and returns true if successfull
</method>
<method name='write'>
Writes this attribute (EG, puts 'key="value"' to the output)
</method>
</class>
|