We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3858262 + 77c6087 commit db48c35Copy full SHA for db48c35
1 file changed
README.md
@@ -103,6 +103,9 @@ siblings_of_child1 = child1.siblings
103
# ..... Retrieve immediate children of the root node as an array.
104
children_of_root = root_node.children
105
106
+# ..... Retrieve the parent of a node.
107
+parent = child1.parent
108
+
109
# ..... This is a depth-first and L-to-R pre-ordered traversal.
110
root_node.each { |node| node.content.reverse }
111
0 commit comments