Module: DataMapper::Lock::ClassMethods

Defined in:
lib/dm-lock/lock.rb

Instance Method Summary collapse

Instance Method Details

#lock(method, *args) ⇒ Object

Shortcut for calling lock_METHOD.



17
18
19
# File 'lib/dm-lock/lock.rb', line 17

def lock method, *args
  send :"lock_#{method}", *args 
end