Class

Child

Extends:

Includes:

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.

Aliases
next_sibling
previous_sibling
Public Attributes
parent
Public Methods
bytes This doesn’t yet handle encodings
document belongs to no document
new Constructor. Any inheritors of this class should call super to make sure this method is called.
next_sibling= Sets the next sibling of this child. This can be used to insert a child after some other child.
parent= Sets the parent of this child to the supplied argument.
previous_sibling= Sets the previous sibling of this child. This can be used to insert a child before some other child.
remove Removes this child from the parent.
replace_with Replaces this object with another object. Basically, calls Parent.replace_child
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.