Sha256: a4d4b392843f8fb10967042725dfa0838a75d1fca9db3d7647694f6ee6fd645c

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

require 'ruby-growl'

module TimerCli
  class Notifier
    def initialize(sec)
      @sec = sec
    end

    def notify
      growl = Growl.new('localhost', 'Timer')
      growl.add_notification('timer')
      growl.notify('timer', 'Timer', "#{@sec} second(s) have passed.")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timer_cli-0.0.1 lib/timer_cli/notifier.rb