Sha256: 182661c94999692446948d72c1fee8eab137676dddbb7385574fae4a4d580f5d

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

module Notifier
  module GNTP
    extend self

    def supported?
      begin
        require "ruby_gntp" unless defined?(::GNTP)
        true
      rescue LoadError
        false
      end
    end

    def notify(options)
      ::GNTP.notify(
          :title => options[:title],
          :text => options[:message],
          :icon => options[:image]
      )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notifier-0.2.0 lib/notifier/gntp.rb