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.



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

def lock; true; end

#locked?Boolean

Returns:

  • (Boolean)


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

def locked?; true; end

#unlockObject



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

def unlock; true; end