class RemindMeTo::Runner
Public Class Methods
new(options)
click to toggle source
# File lib/remindmeto/runner.rb, line 3 def initialize(options) @options = options @notifier = Notifier.new @running = true end
Public Instance Methods
run()
click to toggle source
The main run loop for displaying the notifications
# File lib/remindmeto/runner.rb, line 10 def run while(@running) sleep(@options[:interval]) @notifier.notify(@options[:message], {}) @running = false unless @options[:repeat] end end