Class NQXML::Node |
|
Methods |
Attributes |
:children | [RW] | |
:entity | [RW] | |
:parent | [RW] |
Public Class methods |
new(entity, parent) |
Public Instance methods |
addChild(entity) |
Given an entity, creates a node with this entity and adds it to the list of children of this node.
firstChild() |
lastChild() |
nextSibling() |
prevSibling() |
writeTo(io, prettify = false) |
Write to io. Use the "<<" method, not print or puts, because this might be a String or Array and not an IO object.