Class: RemindMeTo::Runner
- Inherits:
-
Object
- Object
- RemindMeTo::Runner
- Defined in:
- lib/remindmeto/runner.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Runner
constructor
A new instance of Runner.
-
#run ⇒ Object
The main run loop for displaying the notifications.
Constructor Details
Instance Method Details
#run ⇒ Object
The main run loop for displaying the notifications
10 11 12 13 14 15 16 |
# 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 |