public function SassNode::inDirective in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/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
- phpsass/
tree/ SassNode.php, line 279
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;
}