# File lib/rbot/timer.rb, line 43 def run @in += @period # really short duration timers can overrun and leave @in negative, # for these we set @in to @period @in = @period if @in <= 0 if(@data) @func.call(@data) else @func.call end return @once end