Module: FSM::InstanceMethods
- Defined in:
- lib/fsm.rb
Instance Method Summary collapse
- #available_transition_names ⇒ Object
-
#reachable_state_names ⇒ Object
Which states are reachable from the current state.
Instance Method Details
#available_transition_names ⇒ Object
35 36 37 |
# File 'lib/fsm.rb', line 35 def available_transition_names Machine[self.class].available_transitions(self).map() {|item| item.name} end |
#reachable_state_names ⇒ Object
Which states are reachable from the current state
31 32 33 |
# File 'lib/fsm.rb', line 31 def reachable_state_names Machine[self.class].reachable_states(self).map() {|item| item.name} end |