Module: Nova::Common::StarManagement

Included in:
Star
Defined in:
lib/nova/common/star_management.rb

Overview

Manages types of stars. Adds a star_type method to subclasses to add it to the type list.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

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::StarManagement is included. Extends what included it by ClassMethods, and includes InstanceMethods.

Parameters:

  • receiver (Object)


171
172
173
174
# File 'lib/nova/common/star_management.rb', line 171

def self.included(receiver)
  receiver.send :include, InstanceMethods
  receiver.extend         ClassMethods
end