Module: Nova::Starbound::DefaultBehavior::Eventable
- Included in:
- Nova::Starbound::DefaultBehavior
- Defined in:
- lib/nova/starbound/default_behavior/eventable.rb
Overview
Handles events such as packets.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(receiver) ⇒ void
Called when this module is included by a module or class.
Class Method Details
.included(receiver) ⇒ void
This method returns an undefined value.
Called when this module is included by a module or class. Extends that module or class by ClassMethods, and includes InstanceMethods into that class.
80 81 82 83 |
# File 'lib/nova/starbound/default_behavior/eventable.rb', line 80 def self.included(receiver) receiver.extend ClassMethods receiver.send :include, InstanceMethods end |