7 8 9
# File 'lib/db_lock/lock.rb', line 7 def get(name, timeout = 0, &block) DBLock.with_lock(name, timeout, &block) end
Returns:
11 12 13
# File 'lib/db_lock/lock.rb', line 11 def locked? DBLock.send(:locked?) end