lib/GDO/Core/WithEvents.rb
def publish(event, *event_args)
    ::GDO::Core::Log.debug("GDO::Core::WithEvents.publish(#{event}, #{event_args.inspect})")
    event_subscriptions(event).each do |identifier, subscription|
      ::GDO::Core::Log.verbose(display_publish_consumed(event, subscription))
      begin
        subscription.call(*event_args)
      rescue => e # log and rethrow
        ::GDO::Core::Log.exception(e)
        raise e
      end
    end
  end
# Trigger an event and call subscribers.
Trigger an event and call subscribers.
Trigger an event and call subscribers .
def publish(event, *event_args)
    ::GDO::Core::Log.debug("GDO::Core::WithEvents.publish(#{event}, #{event_args.inspect})")
    event_subscriptions(event).each do |identifier, subscription|
      ::GDO::Core::Log.verbose(display_publish_consumed(event, subscription))
      begin
        subscription.call(*event_args)
      rescue => e 
        ::GDO::Core::Log.exception(e)
        raise e
      end
    end
  end
def publish ( event , * event_args ) :: GDO :: Core :: Log . debug ( "GDO::Core::WithEvents.publish(#{event}, #{event_args.inspect})" ) event_subscriptions ( event ) . each do | identifier , subscription | :: GDO :: Core :: Log . verbose ( display_publish_consumed ( event , subscription ) ) begin subscription . call ( * event_args ) rescue => e :: GDO :: Core :: Log . exception ( e ) raise e end end end
Trigger an event and call subscribers.
Trigger an event and call subscribers .
# log and rethrow
event
event_args