Class: EvilEvents::Core::Broadcasting::Dispatcher Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evil_events/core/broadcasting/dispatcher.rb,
lib/evil_events/core/broadcasting/dispatcher/mixin.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Constant Summary collapse

Mixin =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

EvilEvents::Shared::ClonableModuleBuilder.build do
  def dispatch(event)
    Dispatcher.dispatch(event)
  end
end

Class Method Summary collapse

Class Method Details

.dispatch(event) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns void.

Parameters:

Returns:

  • void

Since:

  • 0.1.0



12
13
14
# File 'lib/evil_events/core/broadcasting/dispatcher.rb', line 12

def dispatch(event) # Broadcast
  EvilEvents::Core::Bootstrap[:event_system].manager_of_event(event).notify(event)
end