public function getOption($name, $default = null)
    {
        $pug = $this->getPug();

        try {
            if (method_exists($pug, 'hasOption') && !$pug->hasOption($name)) {
                throw new \InvalidArgumentException('invalid option');
            }

            return $pug->getOption($name);
        } catch (\InvalidArgumentException $exception) {
            return $default;
        }
    }
public function getOption($name, $default = null)
    {
        $pug = $this->getPug();

        try {
            if (method_exists($pug, 'hasOption') && !$pug->hasOption($name)) {
                throw new \InvalidArgumentException('invalid option');
            }

            return $pug->getOption($name);
        } catch (\InvalidArgumentException $exception) {
            return $default;
        }
    }
public function getOption ( $ name , $ default = null ) { $ pug = $ this -> getPug ( ) ; try { if ( method_exists ( $ pug , 'hasOption' ) && ! $ pug -> hasOption ( $ name ) ) { throw new \ InvalidArgumentException ( 'invalid option' ) ; } return $ pug -> getOption ( $ name ) ; } catch ( \ InvalidArgumentException $ exception ) { return $ default ; } }
Get an option from pug engine or default value.

@param string $name
@param null   $default

@return mixed|null
Get an option from pug engine or default value .