Method: RDoc::Servlet#root

Defined in:
lib/rdoc/servlet.rb

#root(req, res) ⇒ Object

Generates the root page on res. req is ignored.



334
335
336
337
338
339
340
# File 'lib/rdoc/servlet.rb', line 334

def root req, res
  generator = RDoc::Generator::Darkfish.new nil, @options

  res.body = generator.generate_servlet_root installed_docs

  res.content_type = 'text/html'
end