Module: SmartCore::Container::Entities::DependencyBuilder Private

Defined in:
lib/smart_core/container/entities/dependency_builder.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

Version:

  • 0.8.1

Class Method Summary collapse

Class Method Details

.build(dependency_name, dependency_definition, memoize) ⇒ SmartCore::Container::Entities::Dependency

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)
  • memoize (Boolean)

Returns:

Since:

  • 0.1.0

Version:

  • 0.8.1



16
17
18
19
20
21
22
# File 'lib/smart_core/container/entities/dependency_builder.rb', line 16

def build(dependency_name, dependency_definition, memoize)
  if memoize
    build_memoized_dependency(dependency_name, dependency_definition)
  else
    build_original_dependency(dependency_name, dependency_definition)
  end
end