Sha256: 1325bf6d433d18af3debaf5f553be808263a2c381ab7e6fcebd5ed439eb986d7

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 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.1 lib/notifier/gntp.rb