Class: Mamiya::Master::AppBridge
- Inherits:
-
Object
- Object
- Mamiya::Master::AppBridge
- Defined in:
- lib/mamiya/master.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, log, this) ⇒ AppBridge
constructor
A new instance of AppBridge.
Constructor Details
#initialize(app, log, this) ⇒ AppBridge
Returns a new instance of AppBridge.
112 113 114 |
# File 'lib/mamiya/master.rb', line 112 def initialize(app, log, this) @app, @logger, @this = app, log['web'], this end |
Instance Method Details
#call(env) ⇒ Object
116 117 118 119 120 |
# File 'lib/mamiya/master.rb', line 116 def call(env) env['rack.logger'] = @logger env['mamiya.master'] = @this @app.call(env) end |