Class: WebSystem::MiddleRack

Inherits:
Rack show all
Defined in:
lib/web_system/sub/rack/middle_racks/middle_rack.rb

Instance Method Summary collapse

Methods inherited from Liza::Controller

color, inherited, on_connected

Methods inherited from Liza::Unit

const_missing, division, part, system, #system, test_class

Constructor Details

#initialize(app) ⇒ MiddleRack

Returns a new instance of MiddleRack.



9
10
11
# File 'lib/web_system/sub/rack/middle_racks/middle_rack.rb', line 9

def initialize app
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



13
14
15
16
# File 'lib/web_system/sub/rack/middle_racks/middle_rack.rb', line 13

def call(env)
  log "env.keys.count = #{env.keys.count}"
  @app.call(env)
end