Sha256: 1c4b4f277a36ce076bd066029a946343c231881246d9c5f81fab5586a6bc6c14

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

module Notify
  begin
    require 'ruby_gntp'

    def self.notify(title, message, option = {})
      GNTP.notify :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.0 lib/notify/ruby_gntp.rb
notify-0.4.0 lib/notify/ruby_gntp.rb