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

- (Bypass) initialize(app)

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

- (Object) call(env, &k)



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

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