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

Methods

new  

Attributes

name  [RW] 

Public Class methods

Initializes the class instance

[Source]

# File lib/action_flow/event.rb, line 52
    def initialize(m_event_name)

      # The name of the event returned

      @name = m_event_name.to_s

    end

[Validate]