Module: UniverseCompiler::Entity::TypeManagement
- Included in:
- Base
- Defined in:
- lib/universe_compiler/entity/type_management.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
36 37 38 |
# File 'lib/universe_compiler/entity/type_management.rb', line 36 def self.extended(base) included base.class end |
.included(base) ⇒ Object
32 33 34 |
# File 'lib/universe_compiler/entity/type_management.rb', line 32 def self.included(base) base.extend(ClassMethods) end |
.valid_for_type?(entity) ⇒ Boolean
24 25 26 |
# File 'lib/universe_compiler/entity/type_management.rb', line 24 def self.valid_for_type?(entity) entity.respond_to? :type and entity.class.respond_to? :entity_type end |
Instance Method Details
#type ⇒ Object
28 29 30 |
# File 'lib/universe_compiler/entity/type_management.rb', line 28 def type self.class.entity_type end |