Class: Alerter
- Inherits:
-
Object
- Object
- Alerter
- Defined in:
- lib/alerter.rb
Class Method Summary collapse
Class Method Details
.alert(msg, options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/alerter.rb', line 3 def alert(msg, ={}) if mac? system "say -v Cellos \"#{msg}\"" elsif linux? system "echo \"#{msg}\"|espeak" else # fuck it end end |