Sha256: 521e38387c57b7cb81baa6aba232b47eec9983b6b6fc80ad2002b8e9227e7b3e

Contents?: true

Size: 294 Bytes

Versions: 2

Compression:

Stored size: 294 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notify-0.5.2 lib/notify/ruby_gntp.rb
notify-0.5.1 lib/notify/ruby_gntp.rb