class FiniteMachine::UndefinedTransition

Stand in for lack of matching transition.

Used internally by {EventsMap}

@api private

Attributes

name[R]

Public Class Methods

new(name) click to toggle source

Initialize an undefined transition

@api private

# File lib/finite_machine/undefined_transition.rb, line 13
def initialize(name)
  @name = name
  freeze
end

Public Instance Methods

==(other) click to toggle source
# File lib/finite_machine/undefined_transition.rb, line 22
def ==(other)
  other.is_a?(UndefinedTransition) && name == other.name
end
to_state(from) click to toggle source
# File lib/finite_machine/undefined_transition.rb, line 18
def to_state(from)
  from
end