public function SassNode::isChildOf in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/tree/SassNode.php \SassNode::isChildOf()
Returns a value indicating if this node is a child of the passed node. This just checks the levels of the nodes. If this node is at a greater level than the passed node if is a child of it.
Return value
boolean true if the node is a child of the passed node, false if not
File
- phpsass/
tree/ SassNode.php, line 163
Class
- SassNode
- SassNode class. Base class for all Sass nodes. @package PHamlP @subpackage Sass.tree
Code
public function isChildOf($node) {
return $this->level > $node->level;
}