Class: Pomo::Notifier::GrowlNotifier

Inherits:
Object
  • Object
show all
Defined in:
lib/pomo/notifier/growl_notifier.rb

Instance Method Summary collapse

Instance Method Details

#notify(message, opts = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/pomo/notifier/growl_notifier.rb', line 6

def notify(message, opts = {})
  full_message = [opts[:header], opts[:message]].join(' ').lstrip

  if opts[:type].equal? :warning
    Growl.notify_warning full_message
  else
    Growl.notify_info full_message
  end
end