lib/ruby-state-machine/state_machine.rb
# Next state (symbol only) for given state and event.
# (equivalent to next_state_instruction(state, event)[:next_state])
Next state (symbol only) for given state and event.
Next state ( symbol only ) for given state and event .
def next_state(state, event)
      transition = next_state_instruction(state, event)
      ns = transition ? transition[:next] : nil
      (ns.is_a?Symbol) ? ns : ns && ns[:state]
    end
def next_state ( state , event ) transition = next_state_instruction ( state , event ) ns = transition ? transition [ :next ] : nil ( ns . is_a? Symbol ) ? ns : ns && ns [ :state ] end
Next state (symbol only) for given state and event.
Next state ( symbol only ) for given state and event .
state
<not_specific>
event
<not_specific>