Sha256: 4933adfb9da105fdf6533d8f114ff00a18dc0925cd465fbf823b060467c0aea7

Contents?: true

Size: 230 Bytes

Versions: 4

Compression:

Stored size: 230 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
notify-0.5.2 lib/notify/libnotify.rb
notify-0.5.1 lib/notify/libnotify.rb
notify-0.5.0 lib/notify/libnotify.rb
notify-0.4.0 lib/notify/libnotify.rb