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='Parent' extends='Child'>
A parent has children, and has methods for accessing them. The Parent class is never encountered except as the superclass for some other object.
<include name='Enumerable'>
</include>
<method name='initialize'>
Constructor
</method>
<method name='add'/>
<alias alias='push' orig='add'>
</alias>
<alias alias='<<' orig='push'>
</alias>
<method name='unshift'/>
<method name='delete'/>
<method name='each'/>
<method name='delete_if'/>
<method name='delete_at'/>
<method name='each_index'/>
<method name='[]'>
Fetches a child at a given index
</method>
<alias alias='each_child' orig='each'>
</alias>
<method name='[]='>
<return>
the parent (self)
</return>
Set an index entry. See Array.[]= @return the parent (self)
</method>
<method name='insert_before'>
<return>
the parent (self)
</return>
Inserts an child before another child @return the parent (self)
</method>
<method name='insert_after'>
<return>
the parent (self)
</return>
Inserts an child after another child @return the parent (self)
</method>
<method name='to_a'/>
<method name='index'>
<return>
the index of the child, or nil if the object is not a child of this parent.
</return>
Fetches the index of a given child
</method>
<method name='size'>
<return>
the number of children of this parent
</return>
</method>
<method name='replace_child'>
Replaces one child with another, making sure the nodelist is correct
</method>
</class>
|