Class: Cura::Event::Middleware::Translator::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cura/event/middleware/translator/base.rb

Overview

The base class for event middleware which detects multiple events and dispatches a new one when found.

Direct Known Subclasses

MouseClick

Instance Method Summary collapse

Instance Method Details

#call(options = {}) ⇒ Object

Call this middleware.

Parameters:

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

Options Hash (options):



14
15
16
# File 'lib/cura/event/middleware/translator/base.rb', line 14

def call(options={})
  translate_event(options) if should_translate?(options)
end