Sha256: 0becb74f716fdf4703f6f002be32d4036e4af322a48a830f14a1b8cd9db6dfd0
Contents?: true
Size: 407 Bytes
Versions: 4
Compression:
Stored size: 407 Bytes
Contents
# frozen_string_literal: true module Notifier module Snarl extend self def supported? return false unless Notifier.os?(/(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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
notifier-1.2.2 | lib/notifier/snarl.rb |
notifier-1.2.1 | lib/notifier/snarl.rb |
notifier-1.1.0 | lib/notifier/snarl.rb |
notifier-1.0.0 | lib/notifier/snarl.rb |