Type:
Class

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'
store_for

store_for(source_name) Instance Public methods Returns an

2015-05-04 11:06:17
root_search

root_search(req, res) Instance Public methods Generates a search index for the

2015-05-04 11:00:56
show_documentation

show_documentation(req, res) Instance Public methods Displays documentation

2015-05-04 11:04:46
installed_docs

installed_docs() Instance Public methods Returns an Array of installed documentation

2015-05-04 10:46:44
new

new(server, stores, cache, mount_path = nil) Class Public methods Creates a

2015-05-04 10:02:46
documentation_page

documentation_page(store, generator, path, req, res) Instance Public methods Fills

2015-05-04 10:22:57