Class: RedisLock::IfOpen
Instance Attribute Summary
Attributes inherited from Strategy
Instance Method Summary collapse
Methods inherited from Strategy
Constructor Details
This class inherits a constructor from RedisLock::Strategy
Instance Method Details
#call(&block) ⇒ Object
3 4 5 6 |
# File 'lib/redis_lock/if_open.rb', line 3 def call(&block) return :locked if lock.locked? _perform(&block) end |