class NxtStateMachine::EventRegistry
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/nxt_state_machine/event_registry.rb, line 3 def initialize super :events do on_key_already_registered do |key| raise NxtStateMachine::Errors::EventAlreadyRegistered, "An event with the name '#{key}' was already registered!" end end end