File: ruby_gntp.rb

package info (click to toggle)
ruby-notify 0.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 148 kB
  • sloc: ruby: 112; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
module Notify
  begin
    require 'ruby_gntp'

    def self.notify(title, message, option = {})
      GNTP.notify :app_name => option[:app_name] || "ruby", :title => title, :text => message, :icon => option[:icon] || "", :sticky => option[:sticky] || false
    end
  rescue LoadError
  end
end