module Chione

An Entity/Component System inspired by Artemis

Constants

VERSION

Gem version

Attributes

uuid[R]

Public Class Methods

Component( object, init_values={} ) click to toggle source

Coerce the specified object into a Chione::Component and return it.

# File lib/chione.rb, line 40
def self::Component( object, init_values={} )
        return object if object.is_a?( Chione::Component )
        return Chione::Component.create( object, init_values ) if
                object.is_a?( Class ) || object.is_a?( String ) || object.is_a?( Symbol )
        raise TypeError, "can't convert %p into Chione::Component" % [ object.class ]
end
const_missing( name ) click to toggle source

Warn about deprecated constants.

Calls superclass method
# File lib/chione.rb, line 49
def self::const_missing( name )
        return super unless name == :Assemblage
        warn "Chione::Assemblage has been renamed to Chione::Archetype. " \
                "This alias will be removed before 1.0\n" \
                "Used at #{caller(1).first}"
        return Chione::Archetype
end