Class: Ramaze::Knotify

Inherits:
Object show all
Includes:
Logging
Defined in:
lib/ramaze/log/knotify.rb

Overview

Informer for the Knotify notfication system used on KDE. Doesn’t need any special libraries.

Instance Method Summary collapse

Methods included from Logging

#debug, #debug?, #dev, #error, #info, #shutdown, #tag_log, #warn

Instance Method Details

#log(tag, *messages) ⇒ Object

Please see for more information on the API used here: lukeplant.me.uk/articles.php?id=3



17
18
19
20
21
22
23
# File 'lib/ramaze/log/knotify.rb', line 17

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