Class: Script::Interval
- Inherits:
-
Object
- Object
- Script::Interval
- Defined in:
- lib/script.rb
Overview
in Trigger
Instance Method Summary collapse
- #doit ⇒ Object
-
#initialize(toplevel, n, &block) ⇒ Interval
constructor
A new instance of Interval.
Constructor Details
Instance Method Details
#doit ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/script.rb', line 70 def doit @m += 1 if @m == @n @prog.doit @m = 0 end end |