Jade\Jade::requirements PHP Method

requirements() public method

For each of them, the value can be true if the requirement is fullfilled, false else. If a requirement name is specified, returns only the matching boolean value for this requirement.
public requirements ( $name = null ) : array | boolean
return array | boolean
    public function requirements($name = null)
    {
        $requirements = array('streamWhiteListed' => !$this->whiteListNeeded('suhosin'), 'cacheFolderExists' => !$this->options['cache'] || is_dir($this->options['cache']), 'cacheFolderIsWritable' => !$this->options['cache'] || is_writable($this->options['cache']));
        if ($name) {
            if (!isset($requirements[$name])) {
                throw new \InvalidArgumentException($name . ' is not in the requirements list (' . implode(', ', array_keys($requirements)) . ')', 19);
            }
            return $requirements[$name];
        }
        return $requirements;
    }