Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add predicates ancestor_of?, parent_of?, root_of?, children_of?, sibling_of? and descendant_of?. #45
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
The pull requests looks good, I would like to merge it.
Would you mind renaming 'children_of?' to 'child_of?'?
Maybe also pull the tests out of test_tree_navigation and write a separate test method test_tree_checks and test some false cases?