module NxtStateMachine::Transition::Interface
Public Instance Methods
id()
click to toggle source
# 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)
click to toggle source
# 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