Class: EvilEvents::Core::Events::Notifier::Proxy Private

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/evil_events/core/events/notifier/proxy.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.3.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProxy

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 a new instance of Proxy.

Since:

  • 0.3.0



20
21
22
# File 'lib/evil_events/core/events/notifier/proxy.rb', line 20

def initialize
  @initialization_mutex = Mutex.new
end

Instance Attribute Details

#initialization_mutexMutex (readonly)

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:

  • (Mutex)

Since:

  • 0.3.0



16
17
18
# File 'lib/evil_events/core/events/notifier/proxy.rb', line 16

def initialization_mutex
  @initialization_mutex
end

Instance Method Details

#notifierAbstract, ...

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:

Since:

  • 0.3.0



28
29
30
31
32
# File 'lib/evil_events/core/events/notifier/proxy.rb', line 28

def notifier
  initialization_mutex.synchronize do
    @notifier ||= EvilEvents::Core::Events::Notifier::Builder.build_notifier!
  end
end