class IMAP_Notifier::Alert
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/imap_notifier/growler.rb, line 7 def initialize super("localhost", ::IMAP_Notifier::VERSION) end
remove()
click to toggle source
# File lib/imap_notifier/growler.rb, line 4 def self.remove end
Public Instance Methods
alert(body, opts={})
click to toggle source
# File lib/imap_notifier/growler.rb, line 11 def alert(body, opts={}) opts[:title] ||= self.class.name add_notification ::IMAP_Notifier::VERSION notify ::IMAP_Notifier::VERSION, opts[:title], body end