Module: Nova::Common::EventHandler
- Included in:
- Features::Feature, Star
- Defined in:
- lib/nova/common/event_handler.rb,
lib/nova/common/event_handler/event.rb
Overview
Handles events sent to the receiver to be processed.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods Classes: Event
Class Method Summary collapse
-
.included(receiver) ⇒ void
private
Called when EventHandler is included.
Class Method Details
.included(receiver) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Called when Nova::Common::EventHandler is included. Extends what included it by ClassMethods, and includes InstanceMethods.
160 161 162 163 |
# File 'lib/nova/common/event_handler.rb', line 160 def self.included(receiver) receiver.extend ClassMethods receiver.send :include, InstanceMethods end |