Class: SmartCore::Container::Entities::DependencyBuilder Private

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

Class Method Summary collapse

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



24
25
26
27
# File 'lib/smart_core/container/entities/dependency_builder.rb', line 24

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

Class Method Details

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

Returns:

Since:

  • 0.7.0



13
14
15
# File 'lib/smart_core/container/entities/dependency_builder.rb', line 13

def build(dependency_name, dependency_definition)
  new(dependency_name, dependency_definition).build
end

Instance Method Details

#buildSmartCore::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.



33
34
35
# File 'lib/smart_core/container/entities/dependency_builder.rb', line 33

def build
  SmartCore::Container::Entities::Dependency.new(dependency_name, dependency_definition)
end