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.

API:

  • public

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

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.

API:

  • public



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