File: libnotify.rb

package info (click to toggle)
ruby-notify 0.5.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 144 kB
  • sloc: ruby: 112; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 230 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
module Notify
  begin
    require 'libnotify'
    def self.notify(title, message, option={})
      Libnotify.show(:summary => title, :body => html_escape(message), :icon_path => option[:icon])
    end
  rescue LoadError
  end
end