Class: YARD::Server::RackMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/yard/server/rack_adapter.rb

Overview

Since:

  • 0.6.0

Instance Method Summary collapse

Constructor Details

#initialize(app, opts = {}) ⇒ RackMiddleware

Returns a new instance of RackMiddleware.

Since:

  • 0.6.0



7
8
9
10
# File 'lib/yard/server/rack_adapter.rb', line 7

def initialize(app, opts = {})
  args = [opts[:libraries] || {}, opts[:options] || {}, opts[:server_options] || {}]
  @app = RackAdapter.new(*args)
end

Instance Method Details

#call(env) ⇒ Object

Since:

  • 0.6.0



12
# File 'lib/yard/server/rack_adapter.rb', line 12

def call(env) @app.call(env) end