A DriverEvent is a TimedEvent with an associated Task and Condition. This is the primary mechanism for poll conditions to be scheduled.
Handle this event by invoking the underlying condition on the associated task.
Returns nothing.
# File lib/god/driver.rb, line 63 def handle_event @task.handle_poll(@condition) end
Initialize a new DriverEvent.
delay - The Numeric delay for this event. task - The Task associated with this event. condition - The Condition associated with this event.
# File lib/god/driver.rb, line 53 def initialize(delay, task, condition) super(delay) @task = task @condition = condition end