Module: Draco::Periodic::ClassMethods

Defined in:
lib/draco/periodic.rb

Overview

Internal: Adds the DSL to define which tick to run the System.

Instance Method Summary collapse

Instance Method Details

#run_every(ticks) ⇒ Object



29
30
31
# File 'lib/draco/periodic.rb', line 29

def run_every(ticks)
  @period = ticks.to_i
end