Module: LockMethod::InstanceMethods

Defined in:
lib/lock_method.rb

Overview

All Objects, including instances and Classes, get the #clear_method_lock method.

Instance Method Summary collapse

Instance Method Details

#clear_method_lock(method_id) ⇒ Object

Clear the lock for a particular method.

Example:

my_blog.clear_method_lock :get_latest_entries


22
23
24
25
# File 'lib/lock_method.rb', line 22

def clear_method_lock(method_id)
  lock = ::LockMethod::Lock.new :obj => self, :method_id => method_id
  lock.delete
end