Module: SmartCore::Injection::Injector::Modulizer Private

Defined in:
lib/smart_core/injection/injector/modulizer.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

Class Method Summary collapse

Class Method Details

.inject_to(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:

  • base_klass (Class, Module)

Since:

  • 0.1.0



22
23
24
# File 'lib/smart_core/injection/injector/modulizer.rb', line 22

def inject_to(base_klass)
  base_klass.include(::SmartCore::Injection::DSL)
end

.with_containers(containers) ⇒ Module

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.

Parameters:

  • containers (Array<SmartCore::Container>)

Returns:

  • (Module)

Since:

  • 0.1.0



12
13
14
15
# File 'lib/smart_core/injection/injector/modulizer.rb', line 12

def with_containers(containers)
  prevent_inconsistency!(containers)
  build_container_injectable_module(containers)
end