Class: WebSystem::MiddleRack
- Inherits:
-
Rack
- Object
- Liza::Unit
- Liza::Controller
- Rack
- WebSystem::MiddleRack
- Defined in:
- lib/web_system/sub/rack/middle_racks/middle_rack.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ MiddleRack
constructor
A new instance of MiddleRack.
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 |