public function rule($pattern)
    {
        $rewrite = $this->container->make(Rewrite::class);

        $rewrite->setPattern($pattern);

        return $this->hang($rewrite);
    }
public function rule($pattern)
    {
        $rewrite = $this->container->make(Rewrite::class);

        $rewrite->setPattern($pattern);

        return $this->hang($rewrite);
    }
public function rule ( $ pattern ) { $ rewrite = $ this -> container -> make ( Rewrite :: class ) ; $ rewrite -> setPattern ( $ pattern ) ; return $ this -> hang ( $ rewrite ) ; }
Create rewrite rule.

@param  string $pattern

@return \Assely\Rewrite\Rule
Create rewrite rule .