Class: Tamarillo::Notification::Bell

Inherits:
Object
  • Object
show all
Defined in:
lib/tamarillo/notification/bell.rb

Constant Summary collapse

CHIME_COUNT =
3
CHIME_COMMAND =
'tput bel; sleep 0.2'

Instance Method Summary collapse

Instance Method Details

#callObject

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