use below tree for example.
------
root
a
a
------
root = Tree::TreeNode.new "root"
root << Tree::TreeNode.new("a") << Tree::TreeNode.new("a")
current <=> is use #name, so root["a"] == root["a"]["a"], but they are diffenent
nodes.
== use node comparison.
root["a"] is same as root["a"]
root["a"]["a"] is not same as root["a"]
root is ancesotor of root["a"]["a"].
use == > < >= <= to indicate same, ancestor, child, ancestor or same, child or same.
|