Beans_Lessc::injectVariables PHP Method

injectVariables() protected method

inject array of unparsed strings into environment as variables
protected injectVariables ( $args )
    protected function injectVariables($args)
    {
        $this->pushEnv();
        $parser = new lessc_parser($this, __METHOD__);
        foreach ($args as $name => $strValue) {
            if ($name[0] != '@') {
                $name = '@' . $name;
            }
            $parser->count = 0;
            $parser->buffer = (string) $strValue;
            if (!$parser->propertyValue($value)) {
                throw new Exception("failed to parse passed in variable {$name}: {$strValue}");
            }
            $this->set($name, $value);
        }
    }