File: Elements.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 (63 lines) | stat: -rw-r--r-- 1,806 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE class>
<class name='Elements'>
   A class which provides filtering of children for Elements, and XPath search support.
  <include name='Enumerable'>
    
  </include>
  <method name='initialize'>
     Constructor 
  </method>
  <method name='[]'>
    <return>
      the first matching Element, or nil if no child matched
    </return>
     Fetches a child element 
  </method>
  <method name='[]='>
    <return>
      the previous element; nil if no previous element was found.
    </return>
     Sets an element, replacing any previous matching element.  If no existing element is found ,the element is added. 
  </method>
  <method name='empty'>
    <return>
      true if there are no Element children, false otherwise
    </return>
     
  </method>
  <method name='index'>
    <return>
      the index of the supplied child (starting at 1), or -1 if  the element is not a child 
    </return>
     @return the index of the supplied child (starting at 1), or -1 if  the element is not a child 
  </method>
  <method name='delete'>
    <return>
      the removed child
    </return>
     Deletes a child Element 
  </method>
  <method name='delete_all'>
    <return>
      an Array of Elements that have been removed
    </return>
     Removes multiple elements 
  </method>
  <method name='add'>
    <return>
      the added Element
    </return>
     Adds an element 
  </method>
  <alias alias='&lt;&lt;' orig='add'>
    
  </alias>
  <method name='each'>
     Iterates through all of the child Elements, optionally filtering them by a given XPath Only supply the first parameter (and a block).  The second parameter is used internally for recursion. 
  </method>
  <method name='size'/>
  <method name='to_a'/>
  <method name='literalize'>
     A private helper method
  </method>
</class>