original_string: public function respondTo($func)
      {
          $route    = Router::currentRoute();
          $response = $func($route['extension'], $this);
  
          if ($response === null) {
              return $this->show404();
          }
  
          return $response;
      }
code: public function respondTo($func)
      {
          $route    = Router::currentRoute();
          $response = $func($route['extension'], $this);
  
          if ($response === null) {
              return $this->show404();
          }
  
          return $response;
      }
code_tokens: public function respondTo ( $ func ) { $ route = Router :: currentRoute ( ) ; $ response = $ func ( $ route [ 'extension' ] , $ this ) ; if ( $ response === null ) { return $ this -> show404 ( ) ; } return $ response ; }
docstring: Easily respond to different request formats.
  
  @param callable $func
  
  @return object
docstring_tokens: Easily respond to different request formats .