class RemindMeTo::Notifier
Public Class Methods
new()
click to toggle source
# File lib/remindmeto/notifier.rb, line 6 def initialize() if RemindMeTo::OS.mac? @notifier = NotificationCenterNotifier.new else RemindMeTo::OS.linux? @notifier = LibnotifyNotifier.new end end
Public Instance Methods
notify(message, opts = {})
click to toggle source
# File lib/remindmeto/notifier.rb, line 14 def notify(message, opts = {}) @notifier.notify(message, opts) end