Module: SmartCore::Injection::Injector::Strategies::MethodInjection Private

Defined in:
lib/smart_core/injection/injector/strategies/method_injection.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_class_method(injection_settings) ⇒ 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



21
22
23
# File 'lib/smart_core/injection/injector/strategies/method_injection.rb', line 21

def inject_class_method(injection_settings)
  inject_dependency(injection_settings, injection_settings.class_level_injectable)
end

.inject_instance_method(injection_settings) ⇒ 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



12
13
14
# File 'lib/smart_core/injection/injector/strategies/method_injection.rb', line 12

def inject_instance_method(injection_settings)
  inject_dependency(injection_settings, injection_settings.instance_level_injectable)
end