Class Timer::Action
In: lib/rbot/timer.rb
Parent: Object

timer event, something to do and when/how often to do it

Methods

due?   inspect   new   run   tick  

Attributes

blocked  [RW]  is this action blocked? if so it won’t be run
in  [R]  when this action is due next (updated by tick())

Public Class methods

period:how often (seconds) to run the action
data:optional data to pass to the proc
once:optional, if true, this action will be run once then removed
func:associate a block to be called to perform the action

create a new action

Public Instance methods

run the action by calling its proc

[Validate]