Module: SmartCore::Injection

Defined in:
lib/smart_core/injection.rb,
lib/smart_core/injection/errors.rb,
lib/smart_core/injection/version.rb

Overview

Since:

  • 0.1.0

Defined Under Namespace

Modules: DSL Classes: Injector, Locator

Constant Summary collapse

Error =

Since:

  • 0.1.0

Class.new(SmartCore::Error)
ArgumentError =

Since:

  • 0.1.0

Class.new(SmartCore::ArgumentError)
NoRegisteredContainersError =

Since:

  • 0.1.0

Class.new(Error)
VERSION =

Returns:

  • (String)

Since:

  • 0.1.0

Version:

  • 0.3.0

'0.3.0'

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:

  • base_klass (Class, Module)

Since:

  • 0.1.0



39
40
41
# File 'lib/smart_core/injection.rb', line 39

def included(base_klass)
  ::SmartCore::Injection::Injector::Modulizer.inject_to(base_klass)
end