lib/pigeon/task.rb
def run!(processor = nil, initial_state = nil, &callback)
    @callback = callback if (block_given?)
    
    @state = initial_state || self.class.initial_state
    @started_at = Time.now

    @processor = processor
    run_state!(@state)
  end
# Kicks off the task. The processor execurting the task should be supplied
# as the first argument. An optional callback is executed just before each
# state is excuted and is passed the state name as a symbol.
Kicks off the task. The processor execurting the task should be supplied
as the first argument. An optional callback is executed just before each
state is excuted and is passed the state name as a symbol.
Kicks off the task . The processor execurting the task should be supplied as the first argument . An optional callback is executed just before each state is excuted and is passed the state name as a symbol .
def run!(processor = nil, initial_state = nil, &callback)
    @callback = callback if (block_given?)
    @state = initial_state || self.class.initial_state
    @started_at = Time.now
    @processor = processor
    run_state!(@state)
  end
def run! ( processor = nil , initial_state = nil , & callback ) @callback = callback if ( block_given? ) @state = initial_state || self . class . initial_state @started_at = Time . now @processor = processor run_state! ( @state ) end
Kicks off the task.
Kicks off the task .
processor
initial_state
callback