Sha256: 7d2da6f95c14ed390ee387ad5fd65c7eea502c551a7398db56ff9b64b6d85c7a
Contents?: true
Size: 379 Bytes
Versions: 7
Compression:
Stored size: 379 Bytes
Contents
module Notifier module Snarl extend self def supported? return false unless RUBY_PLATFORM =~ /(mswin|mingw)/ begin require "snarl" unless defined?(::Snarl) true rescue LoadError false end end def notify(options) ::Snarl.show_message(options[:title], options[:message], options[:image]) end end end
Version data entries
7 entries across 7 versions & 1 rubygems