Class: Carb::Inject::StoreDependencies Private

Inherits:
Object
  • Object
show all
Defined in:
lib/carb/inject/store_dependencies.rb

Overview

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

Store dependencies on the specified object, setting instance variables

having as name the key of the hash and as value the value of the hash

Instance Method Summary collapse

Instance Method Details

#call(injectable, **dependencies) ⇒ Object

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.



9
10
11
12
13
14
# File 'lib/carb/inject/store_dependencies.rb', line 9

def call(injectable, **dependencies)
  @injectable   = injectable
  @dependencies = dependencies

  inject_on(injectable.class)
end