Class: SmartCore::Container::Entities::DependencyBuilder Private
- Inherits:
-
Object
- Object
- SmartCore::Container::Entities::DependencyBuilder
- 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.
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ SmartCore::Container::Entities::Dependency private
- #initialize(dependency_name, dependency_definition) ⇒ void constructor private
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.
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.
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
#build ⇒ 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.
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 |