Sha256: bc60d19dcdf0790b2667352432ae2e4cbf33210698135b10afd6cb77fcfbed3b

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

module Notify
  begin
    require 'ruby-growl'

    @@growl = Growl.new 'localhost', 'ruby'
    @@growl.add_notification 'notify'
    def self.notify(title, message, option = {})
      @@growl.notify 'notify', title, message, option[:priority] || 0, option[:sticky] || false
    end
  rescue LoadError
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notify-0.5.0 lib/notify/ruby-growl.rb