Module: Rib::Beep

Extended by:
Plugin
Defined in:
lib/rib/more/beep.rb

Instance Attribute Summary

Attributes included from Plugin

#disabled

Instance Method Summary collapse

Methods included from Plugin

const_missing, disable, disabled?, enable, enabled?, extended

Instance Method Details

#before_loopObject

————— Rib API —————



10
11
12
13
14
15
16
# File 'lib/rib/more/beep.rb', line 10

def before_loop
  super
  return self if Beep.disabled?
  beep if started_at && (Time.now - started_at) > beep_threshold
  Beep.disable
  self
end