Method: Apollo::InstanceMethods#current_state

Defined in:
lib/apollo.rb

#current_stateObject



88
89
90
91
92
# File 'lib/apollo.rb', line 88

def current_state
  loaded_state = load_current_state
  res = spec.states[loaded_state.to_sym] if loaded_state
  res || spec.initial_state
end