File: Attribute.xml

package info (click to toggle)
librexml-ruby 1.2.5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 792 kB
  • ctags: 655
  • sloc: ruby: 3,778; xml: 1,609; java: 109; makefile: 43
file content (40 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download
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: &lt;element attribute="value"/&gt;.  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>