lib/rufus/scheduler.rb in rufus-scheduler-1.0 vs lib/rufus/scheduler.rb in rufus-scheduler-1.0.1
- old
+ new
@@ -245,11 +245,11 @@
end
#
# Starts this scheduler (or restart it if it was previously stopped)
#
- def sstart
+ def start
@stopped = false
@scheduler_thread = Thread.new do
@@ -274,16 +274,21 @@
end
#
# The scheduler is stoppable via sstop()
#
- def sstop
+ def stop
@stopped = true
end
- alias :start :sstart
- alias :stop :sstop
+ # (for backward compatibility)
+ #
+ alias :sstart :start
+
+ # (for backward compatibility)
+ #
+ alias :sstop :stop
#
# Joins on the scheduler thread
#
def join