Module: SimpleStateMachine::Tools::Inspector

Included in:
StateMachineDefinition
Defined in:
lib/simple_state_machine/tools/inspector.rb

Instance Method Summary collapse

Instance Method Details

#begin_statesObject



4
5
6
# File 'lib/simple_state_machine/tools/inspector.rb', line 4

def begin_states
  from_states - to_states
end

#end_statesObject



8
9
10
# File 'lib/simple_state_machine/tools/inspector.rb', line 8

def end_states
  to_states - from_states
end

#statesObject



12
13
14
# File 'lib/simple_state_machine/tools/inspector.rb', line 12

def states
  (to_states + from_states).uniq
end