Module: Peregrine::Features

Included in:
Component, Entity, EntityManager, Package, System
Defined in:
lib/peregrine/features.rb,
lib/peregrine/features/nameable.rb,
lib/peregrine/features/taggable.rb,
lib/peregrine/features/configurable.rb,
lib/peregrine/features/identifiable.rb

Overview

This module provides modules which add instance methods to Peregrine objects that provide functionality such as tags, names, and identifiers. These modules are designed to be included in Peregrine classes.

Defined Under Namespace

Modules: Configurable, Identifiable, Nameable, Taggable

Class Method Summary collapse

Class Method Details

.included(parent) ⇒ Object

Includes all of the constants defined within this module to the parent which includes this module – essentially a shortcut to include all of the defined features.



16
17
18
# File 'lib/peregrine/features.rb', line 16

def self.included(parent)
  parent.send(:include, *constants.map { |const| const_get(const) })
end