lib/reveal-ck/commands/thread_waker.rb in reveal-ck-3.0.1 vs lib/reveal-ck/commands/thread_waker.rb in reveal-ck-3.1.0
- old
+ new
@@ -1,10 +1,11 @@
module RevealCK
module Commands
# Utility that wakes up a thread periodically
class ThreadWaker
def initialize(thread_to_wake, wait_period = 1)
- @thread_to_wake, @wait_period = thread_to_wake, wait_period
+ @thread_to_wake = thread_to_wake
+ @wait_period = wait_period
end
def run
Thread.new do
loop do