Sha256: 9ea5371688d8c9460105069d7b17a7c8d90879cece0893094af0d4dbb3888b30
Contents?: true
Size: 344 Bytes
Versions: 12
Compression:
Stored size: 344 Bytes
Contents
module NxtStateMachine class Transition module Interface def id @id ||= "#{from.to_s}_#{to.to_s}" end def transitions_from_to?(from_state, to_state) from.enum.in?(Array(from_state)) && to.enum.in?(Array(to_state)) end delegate :all_states, :any_states, to: :state_machine end end end
Version data entries
12 entries across 12 versions & 1 rubygems