class YARD::Server::RackMiddleware

This class wraps the {RackAdapter} into a Rack-compatible middleware. See {#initialize} for a list of options to pass via Rack’s use method.

@note You must pass a :libraries option to the RackMiddleware via use. To

read about how to return a list of libraries, see {LibraryVersion} or look
at the example below.

@example Using the RackMiddleware in a Rack application

libraries = {:mylib => [YARD::Server::LibraryVersion.new('mylib', nil, '/path/to/.yardoc')]}
use YARD::Server::RackMiddleware, :libraries => libraries