RDoc::Servlet - ri - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


= RDoc::Servlet < WEBrick::HTTPServlet::AbstractServlet

(from gem rdoc-7.2.0)
------------------------------------------------------------------------
This is a WEBrick servlet that allows you to browse ri documentation.

You can show documentation through either `ri --server` or, with
RubyGems 2.0 or newer, `gem server`.  For ri, the server runs on port
8214 by default.  For RubyGems the server runs on port 8808 by default.

You can use this servlet in your own project by mounting it on a WEBrick
server:

  require 'webrick'

  server = WEBrick::HTTPServer.new Port: 8000

  server.mount '/', RDoc::Servlet

If you want to mount the servlet some other place than the root, provide
the base path when mounting:

  server.mount '/rdoc', RDoc::Servlet, '/rdoc'
------------------------------------------------------------------------
= Class methods:

  new

= Instance methods:

  asset
  asset_dirs
  do_GET
  documentation_page
  documentation_search
  documentation_source
  error
  generator_for
  if_modified_since
  installed_docs
  not_found
  options
  ri_paths
  root
  root_search
  show_documentation
  store_for

= Attributes:

  attr_reader asset_dirs
  attr_reader options


Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:15 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!