Module: Cramp::PeriodicTimer::ClassMethods

Defined in:
lib/cramp/periodic_timer.rb

Instance Method Summary collapse

Instance Method Details

#periodic_timer(method, options = {}) ⇒ Object



13
14
15
# File 'lib/cramp/periodic_timer.rb', line 13

def periodic_timer(method, options = {})
  self.periodic_timers << [method, options]
end