You are here

public function SassNode::isChildOf in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/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

phamlp/sass/tree/SassNode.php, line 160

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;
}