Class: SmartCore::Container::Dependency Private
- Defined in:
- lib/smart_core/container/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.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Entity
Instance Method Summary collapse
- #call ⇒ Any private
- #initialize(external_name, dependency_definition, **options) ⇒ void constructor private
Constructor Details
#initialize(external_name, dependency_definition, **options) ⇒ 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.
TODO:
option list
14 15 16 17 18 |
# File 'lib/smart_core/container/dependency.rb', line 14 def initialize(external_name, dependency_definition, **) @dependency_definition = dependency_definition @access_lock = Mutex.new super(external_name) end |
Instance Method Details
#call ⇒ Any
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 |
# File 'lib/smart_core/container/dependency.rb', line 24 def call thread_safe { dependency_definition.call } end |