Module: LockMethod::InstanceMethods
- Defined in:
- lib/lock_method.rb
Overview
All Objects, including instances and Classes, get the #lock_method_clear
method.
Instance Method Summary collapse
-
#lock_method_clear(method_id) ⇒ Object
Clear the lock for a particular method.
Instance Method Details
#lock_method_clear(method_id) ⇒ Object
Clear the lock for a particular method.
Example:
my_blog.lock_method_clear :get_latest_entries
69 70 71 72 |
# File 'lib/lock_method.rb', line 69 def lock_method_clear(method_id) lock = ::LockMethod::Lock.new self, method_id lock.delete end |