Class: Rufus::Scheduler::NullLock

Inherits:
Object
  • Object
show all
Defined in:
lib/rufus/scheduler/locks.rb

Overview

A lock that can always be acquired

Instance Method Summary collapse

Instance Method Details

#lockObject

Locking is always successful.



37
# File 'lib/rufus/scheduler/locks.rb', line 37

def lock; true; end

#locked?Boolean

Returns:

  • (Boolean)


39
# File 'lib/rufus/scheduler/locks.rb', line 39

def locked?; true; end

#unlockObject



40
# File 'lib/rufus/scheduler/locks.rb', line 40

def unlock; true; end