Module: SmartCore::Container::DefinitionDSL Private

Included in:
SmartCore::Container
Defined in:
lib/smart_core/container/definition_dsl.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Defined Under Namespace

Modules: ClassInheritance, ClassMethods, Commands, Inheritance Classes: CommandSet

Class Method Summary collapse

Class Method Details

.included(base_klass) ⇒ 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.

Parameters:

Since:

  • 0.1.0



17
18
19
20
21
22
23
24
25
# File 'lib/smart_core/container/definition_dsl.rb', line 17

def included(base_klass)
  base_klass.instance_variable_set(:@__container_definition_commands__, CommandSet.new)
  base_klass.instance_variable_set(:@__container_instantiation_commands__, CommandSet.new)
  base_klass.instance_variable_set(:@__container_definition_lock__, SmartCore::Engine::ReadWriteLock.new)
  base_klass.singleton_class.send(:attr_reader, :__container_definition_commands__)
  base_klass.singleton_class.send(:attr_reader, :__container_instantiation_commands__)
  base_klass.extend(ClassMethods)
  base_klass.singleton_class.prepend(ClassInheritance)
end