Class: Mamiya::Master::AppBridge

Inherits:
Object
  • Object
show all
Defined in:
lib/mamiya/master.rb

Instance Method Summary collapse

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