Files

Class/Module Index [+]

Quicksearch

God::DriverEvent

A DriverEvent is a TimedEvent with an associated Task and Condition. This is the primary mechanism for poll conditions to be scheduled.

Public Class Methods

new(delay, task, condition) click to toggle source

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

Public Instance Methods

handle_event() click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.