class Notification::ESpeakNotification
Public Class Methods
espeak?()
click to toggle source
# File lib/gaddygaddy-client/notification/espeak.rb, line 21 def self.espeak? `whereis espeak`.index('bin') end
notify(event, message_text)
click to toggle source
# File lib/gaddygaddy-client/notification/espeak.rb, line 25 def self.notify(event, message_text) if espeak? ESpeak.speak message_text end end