Class: YARD::Server::RackMiddleware
- Inherits:
-
Object
- Object
- YARD::Server::RackMiddleware
- Defined in:
- lib/yard/server/rack_adapter.rb
Overview
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, opts = {}) ⇒ RackMiddleware
constructor
A new instance of RackMiddleware.
Constructor Details
#initialize(app, opts = {}) ⇒ RackMiddleware
Returns a new instance of RackMiddleware.
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
12 |
# File 'lib/yard/server/rack_adapter.rb', line 12 def call(env) @app.call(env) end |