def equal_children?(other)
      self.class.children.all? { |child| send(child) == other.send(child) }
    end
def equal_children?(other)
      self.class.children.all? { |child| send(child) == other.send(child) }
    end
Compares this node with another node, returns true if the nodes are equal.
 Returns true if all children of the current object and the other object are equal.