Class: Notification::ESpeakNotification
- Inherits:
-
Object
- Object
- Notification::ESpeakNotification
- Defined in:
- lib/gaddygaddy-client/notification/espeak.rb
Class Method Summary collapse
Class Method Details
.espeak? ⇒ Boolean
21 22 23 |
# File 'lib/gaddygaddy-client/notification/espeak.rb', line 21 def self.espeak? `whereis espeak`.index('bin') end |
.notify(event, message_text) ⇒ Object
25 26 27 28 29 |
# File 'lib/gaddygaddy-client/notification/espeak.rb', line 25 def self.notify(event, ) if espeak? ESpeak.speak end end |