Class: Rack::Ketai::Middleware

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/ketai/middleware.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, options) ⇒ Middleware

Returns a new instance of Middleware.



5
6
7
8
# File 'lib/rack/ketai/middleware.rb', line 5

def initialize(app, options)
  @app = app
  @options = options.dup.clone
end

Instance Method Details

#call(env) ⇒ Object



10
11
12
# File 'lib/rack/ketai/middleware.rb', line 10

def call(env)
  apply(env, Rack::Ketai::Carrier.load(env))
end