Sha256: 0ae75fb0b1265eb696e9997108e61211fe776c19d5b63598d66d47f31de8a8fd
Contents?: true
Size: 705 Bytes
Versions: 4
Compression:
Stored size: 705 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. module Ramaze # Informer for the Knotify notfication system used on KDE. # Doesn't need any special libraries. class Knotify include Informing trait :present => 16 # Please see for more information on the API used here: # http://lukeplant.me.uk/articles.php?id=3 def inform(tag, *messages) present = class_trait[:present] tag = tag.to_s.capitalize messages.flatten.each do |message| system(%{dcop knotify default notify Ramaze "#{tag}" "#{message}" '' '' #{present} 0}) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.3 | lib/ramaze/inform/knotify.rb |
ramaze-0.1.4 | lib/ramaze/inform/knotify.rb |
ramaze-0.2.0 | lib/ramaze/inform/knotify.rb |
ramaze-0.2.1 | lib/ramaze/inform/knotify.rb |