Class: RestCore::Bypass

Inherits:
Object
  • Object
show all
Defined in:
lib/rest-core/middleware/bypass.rb

Overview

the simplest middleware

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Bypass

Returns a new instance of Bypass



6
7
8
# File 'lib/rest-core/middleware/bypass.rb', line 6

def initialize app
  @app = app
end

Instance Method Details

#call(env, &k) ⇒ Object



10
11
12
# File 'lib/rest-core/middleware/bypass.rb', line 10

def call env, &k
  @app.call(env, &k)
end