Method: Tamarillo::Notification.for

Defined in:
lib/tamarillo/notification.rb

.for(type) ⇒ Object

Public: Resolves a notification class.



27
28
29
30
31
32
33
34
# File 'lib/tamarillo/notification.rb', line 27

def self.for(type)
  case type
  when BELL then Bell.new
  when GROWL then Growl.new
  when SPEECH then Speech.new
  else None.new
  end
end