Sha256: 146fe2dbe084f4259a6f4afeaeb4eaa9cdafac3e926dd6f54428572ea815f4e5
Contents?: true
Size: 337 Bytes
Versions: 2
Compression:
Stored size: 337 Bytes
Contents
module Notify begin require 'ruby-growl' def self.notify(title, message, option = {}) @@growl = Growl.new 'localhost', option[:app_name] || "ruby" @@growl.add_notification 'notify' @@growl.notify 'notify', title, message, option[:priority] || 0, option[:sticky] || false end rescue LoadError end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notify-0.5.2 | lib/notify/ruby-growl.rb |
notify-0.5.1 | lib/notify/ruby-growl.rb |