class TimerCli::Notifier

Public Class Methods

new(sec) click to toggle source
# File lib/timer_cli/notifier.rb, line 5
def initialize(sec)
  @sec = sec
end

Public Instance Methods

notify() click to toggle source
# File lib/timer_cli/notifier.rb, line 9
def notify
  growl = Growl.new('localhost', 'Timer')
  growl.add_notification('timer')
  growl.notify('timer', 'Timer', "#{@sec} second(s) have passed.")
end