Sha256: 825b936daca217038d5beb949d1cd31fd27d2a10188abb2d57b0374e10fc62f4
Contents?: true
Size: 259 Bytes
Versions: 1
Compression:
Stored size: 259 Bytes
Contents
module Notify if which('notify-send') def self.notify(title, message, option = {}) iconargs = option.key?(:icon) ? ["-i", option[:icon]] : ["",""] system 'notify-send', title, html_escape(message), iconargs[0], iconargs[1] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notify-0.5.1 | lib/notify/notify-send.rb |