SassPropertyNode::inNamespace PHP Method

inNamespace() public method

Returns a value indicating if this node is in a namespace
public inNamespace ( ) : boolean
return boolean true if this node is in a property namespace, false if not
    public function inNamespace()
    {
        $parent = $this->parent;
        do {
            if ($parent instanceof SassPropertyNode) {
                return true;
            }
            $parent = $parent->parent;
        } while (is_object($parent));
        return false;
    }