amerine/acts_as_tree — pull request #13 by xuanxu (2013-06-12 16:37:07+00:00)
Title: Methods to know if a node is root or leaf

This PR adds a couple of methods:
`node.root?` returns true if node is a root (no parent)
`node.leaf?` returns true if node is a leaf (no children)