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
|
<!DOCTYPE class>
<class name='Child'>
A Child object is something contained by a parent, and this class contains methods to support that. Most user code will not use this class directly.
<include name='Node'>
</include>
<attribute name='parent' type='reader'/>
<method name='initialize'>
Constructor. Any inheritors of this class should call super to make sure this method is called.
</method>
<method name='replace_with'>
<return>
self
</return>
Replaces this object with another object. Basically, calls Parent.replace_child
</method>
<method name='remove'>
<return>
self
</return>
Removes this child from the parent.
</method>
<method name='parent='/>
<alias alias='next_sibling' orig='next_sibling_node'>
</alias>
<alias alias='previous_sibling' orig='previous_sibling_node'>
</alias>
<method name='next_sibling='/>
<method name='previous_sibling='/>
<method name='document'>
<return>
the document this child belongs to, or nil if this child belongs to no document
</return>
</method>
<method name='bytes'>
This doesn't yet handle encodings
</method>
<method name='Child'/>
<method name=''/>
<method name='self'/>
</class>
|