File: Attributes.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 (48 lines) | stat: -rw-r--r-- 1,513 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
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='&lt;&lt;' 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>