Module: SimpleStateMachine::StateMachineDefinition::Mountable

Included in:
SimpleStateMachine::StateMachineDefinition
Defined in:
lib/simple_state_machine/state_machine_definition.rb

Defined Under Namespace

Modules: InstanceMethods

Instance Method Summary collapse

Instance Method Details

#event(event_name, state_transitions) ⇒ Object



49
50
51
# File 'lib/simple_state_machine/state_machine_definition.rb', line 49

def event event_name, state_transitions
  events << [event_name, state_transitions]
end

#eventsObject



53
54
55
# File 'lib/simple_state_machine/state_machine_definition.rb', line 53

def events
  @events ||= []
end