| Class | ActionFlow::Event |
| In: |
lib/action_flow/event.rb
|
| Parent: | Object |
This class is used by steps to return an event descriptor to the ActiveFlow framework.
Use it as :
def step_definition (...) ActionFlow::Event.new(:success) end
There is also a sugar method included in ActionFlow::Base which simplifies the event returning process.
def step_definition (...) event :success end