Class: Tamarillo::Notification::Bell
- Inherits:
-
Object
- Object
- Tamarillo::Notification::Bell
- Defined in:
- lib/tamarillo/notification/bell.rb
Constant Summary collapse
- CHIME_COUNT =
3- CHIME_COMMAND =
'tput bel; sleep 0.2'
Instance Method Summary collapse
-
#call ⇒ Object
Public: executes the notification.
Instance Method Details
#call ⇒ Object
Public: executes the notification.
8 9 10 11 |
# File 'lib/tamarillo/notification/bell.rb', line 8 def call cmd = (1..CHIME_COUNT).map { CHIME_COMMAND }.join(';') system(cmd) end |