Module Mongo::Event::Publisher
In: lib/mongo/event/publisher.rb

This module is included for objects that need to publish events.

@since 2.0.0

Methods

publish  

Attributes

event_listeners  [R]  @return [ Event::Listeners ] event_listeners The listeners.

Public Instance methods

Publish the provided event.

@example Publish an event.

  publisher.publish("my_event", "payload")

@param [ String ] event The event to publish. @param [ Array<Object> ] args The objects to pass to the listeners.

@since 2.0.0

[Validate]