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

#loop_onceObject

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



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

def loop_once
  return super if Beep.disabled?
  beep if started_at && (Time.now - started_at) > beep_threshold
  config[:started_at] = Time.now
  super
end