Class: Rack::Lock
- Inherits:
-
Object
- Object
- Rack::Lock
- Defined in:
- lib/rambo/middleware/lock.rb
Constant Summary collapse
- FLAG =
'rack.multithread'.freeze
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, lock = Mutex.new) ⇒ Lock
constructor
A new instance of Lock.
Constructor Details
#initialize(app, lock = Mutex.new) ⇒ Lock
Returns a new instance of Lock.
5 6 7 |
# File 'lib/rambo/middleware/lock.rb', line 5 def initialize(app, lock = Mutex.new) @app, @lock = app, lock end |