Sha256: abb2d35bd36a3c7fb6824f4c36d0e4345c2b6921b5ce415e7e3f7d05da3c9fe2
Contents?: true
Size: 700 Bytes
Versions: 3
Compression:
Stored size: 700 Bytes
Contents
# Copyright (c) 2008 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 Logging trait :present => 16 # Please see for more information on the API used here: # http://lukeplant.me.uk/articles.php?id=3 def log(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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
clivecrous-ramaze-0.3.9.5 | lib/ramaze/log/knotify.rb |
ramaze-0.3.9 | lib/ramaze/log/knotify.rb |
ramaze-0.3.9.1 | lib/ramaze/log/knotify.rb |