Class: SmartCore::Container::Entities::Dependency Private

Inherits:
Base
  • Object
show all
Defined in:
lib/smart_core/container/entities/dependency.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.

Since:

  • 0.7.0

Instance Attribute Summary

Attributes inherited from Base

#external_name

Instance Method Summary collapse

Constructor Details

#initialize(dependency_name, dependency_definition) ⇒ 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.

Parameters:

  • dependency_name (String)
  • dependency_definition (Proc)

Since:

  • 0.7.0



18
19
20
21
# File 'lib/smart_core/container/entities/dependency.rb', line 18

def initialize(dependency_name, dependency_definition)
  super(dependency_name)
  @dependency_definition = dependency_definition
end

Instance Method Details

#resolveAny

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.

Returns:

  • (Any)

Since:

  • 0.7.0



27
28
29
# File 'lib/smart_core/container/entities/dependency.rb', line 27

def resolve
  dependency_definition.call
end