Class: Cura::Event::Middleware::Dispatch

Inherits:
Base
  • Object
show all
Defined in:
lib/cura/event/middleware/dispatch.rb

Overview

Dispatches the event.

Instance Method Summary collapse

Instance Method Details

#call(options = {}) ⇒ Object

Dispatch the event.

Parameters:

  • options (#to_h) (defaults to: {})

Options Hash (options):



12
13
14
# File 'lib/cura/event/middleware/dispatch.rb', line 12

def call(options={})
  options[:dispatch_queue] << options[:event]
end