lib/thread/every.rb in thread-0.1.4 vs lib/thread/every.rb in thread-0.1.5
- old
+ new
@@ -29,11 +29,11 @@
begin
value = block.call
@mutex.synchronize {
@at = Time.now
- @value = value
+ @value = value
@old = false
@exception = nil
}
rescue Restart
next
@@ -170,10 +170,10 @@
@value unless @exception
}
end
-private
+ private
def cond?
instance_variable_defined? :@cond
end
def cond