Sha256: 37c64363652695d674e56372c4b8e2dc69968df81366de38d2bd66962226c17f
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
class Knotify COMMAND = "dcop knotify default notify eventname" def message(text) @message = text self end def title(text) @title = text self end def to_s command = "#{COMMAND}" command << " '#{@title}'" if @title command << " '#{@message}'" if @message command << " '' ''" command << " 12 1" command end def notify! system(to_s) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notifiers-1.2.0 | lib/notifiers/knotify.rb |