class NxtStateMachine::StateRegistry

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/nxt_state_machine/state_registry.rb, line 3
def initialize
  super :states do
    on_key_already_registered do |key|
      raise NxtStateMachine::Errors::StateAlreadyRegistered,
            "A state with the name '#{key}' was already registered!"
    end
  end
end