Module: ExpirableLocking::InstanceMethods

Defined in:
lib/expirable_locking.rb

Instance Method Summary collapse

Instance Method Details

#lock_with_expireyObject



12
13
14
# File 'lib/expirable_locking.rb', line 12

def lock_with_expirey
  self.class.lock(self)
end

#unlockObject



16
17
18
# File 'lib/expirable_locking.rb', line 16

def unlock
  self.class.unlock(self)
end