public function SassNode::inDirective in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/tree/SassNode.php \SassNode::inDirective()
* Returns a value indicating whether this node is in a directive *
Parameters
boolean true if the node is in a directive, false if not:
File
- phamlp/
sass/ tree/ SassNode.php, line 272
Class
- SassNode
- SassNode class. Base class for all Sass nodes. @package PHamlP @subpackage Sass.tree
Code
public function inDirective() {
return $this->parent instanceof SassDirectiveNode || $this->parent instanceof SassDirectiveNode;
}