class YARD::Server::RackMiddleware

def initialize(app, opts = {})

Options Hash: (**opts)
  • :server_options (Hash) -- a list of options to pass to the server.
  • :options (Hash) -- a list of options to pass to the adapter.
  • :libraries (Hash{String=>Array}) --

Parameters:
  • app () -- the next Rack middleware in the stack
def initialize(app, opts = {})
  args = [opts[:libraries] || {}, opts[:options] || {}, opts[:server_options] || {}]
  @app = app
  @adapter = RackAdapter.new(*args)
end