class
Sheen::Tree::NodeChildren
- Sheen::Tree::NodeChildren
- Sheen::Tree::Children
- Reference
- Object
Overview
A readonly view over a node's children.
A mutable, array-backed implementation of Children.
Defined in:
sheen/tree.crConstructors
Instance Method Summary
-
#append(node : Node) : NodeChildren
Appends node to the
NodeChildrenself. -
#at(index : Int32) : Node | Nil
The node at index, or nil when out of range.
-
#length : Int32
The number of children.
-
#remove(index : Int32) : NodeChildren
Removes the node at index.
Instance methods inherited from class Sheen::Tree::Children
at(index : Int32) : Node | Nil
at,
length : Int32
length
Constructor Detail
Instance Method Detail
def remove(index : Int32) : NodeChildren
#
Removes the node at index. Out of range indices are ignored.
Returns self.