Class: YARD::Server::RackMiddleware

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

Overview

Since:

Instance Method Summary (collapse)

Constructor Details

- (RackMiddleware) initialize(app, opts = {})

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

- (Object) call(env)

Since:

  • 0.6.0



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

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