Module: SimpleStateMachine::StateMachineDefinition::Mountable::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#add_eventsObject



58
59
60
61
62
# File 'lib/simple_state_machine/state_machine_definition.rb', line 58

def add_events
  self.class.events.each do |event_name, state_transitions|
    define_event event_name, state_transitions
  end
end