Module: NxtStateMachine::Transition::Interface
- Included in:
- NxtStateMachine::Transition, Factory
- Defined in:
- lib/nxt_state_machine/transition/interface.rb
Instance Method Summary collapse
Instance Method Details
#id ⇒ Object
4 5 6 |
# File 'lib/nxt_state_machine/transition/interface.rb', line 4 def id @id ||= "#{from.to_s}_#{to.to_s}" end |
#transitions_from_to?(from_state, to_state) ⇒ Boolean
8 9 10 |
# File 'lib/nxt_state_machine/transition/interface.rb', line 8 def transitions_from_to?(from_state, to_state) from.enum.in?(Array(from_state)) && to.enum.in?(Array(to_state)) end |