Class: Tasker::Events::Catalog::CustomEventRegistrar
- Inherits:
-
Object
- Object
- Tasker::Events::Catalog::CustomEventRegistrar
- Defined in:
- lib/tasker/events/catalog.rb
Overview
Service class to handle custom event registration Reduces complexity by organizing registration logic
Class Method Summary collapse
-
.register(event_name, metadata, catalog_instance) ⇒ void
Register a custom event with metadata.
Class Method Details
.register(event_name, metadata, catalog_instance) ⇒ void
This method returns an undefined value.
Register a custom event with metadata
281 282 283 284 285 286 287 288 |
# File 'lib/tasker/events/catalog.rb', line 281 def register(event_name, , catalog_instance) register_event_name(event_name, catalog_instance) # Add to catalog if metadata provided return unless .any? (event_name, , catalog_instance) end |