Class: SmartCore::Container::CommandDefiner Private
- Inherits:
-
Object
- Object
- SmartCore::Container::CommandDefiner
- Defined in:
- lib/smart_core/container/command_definer.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.
Instance Method Summary collapse
- #append_namespace(namespace_name, dependency_definitions) ⇒ void private
- #append_register(dependency_name, dependency_definition, options) ⇒ void private
- #initialize(container_klass) ⇒ void constructor private
Constructor Details
#initialize(container_klass) ⇒ 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.
12 13 14 15 |
# File 'lib/smart_core/container/command_definer.rb', line 12 def initialize(container_klass) @container_klass = container_klass @access_lock = Mutex.new end |
Instance Method Details
#append_namespace(namespace_name, dependency_definitions) ⇒ 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.
This method returns an undefined value.
23 24 25 26 27 28 29 |
# File 'lib/smart_core/container/command_definer.rb', line 23 def append_namespace(namespace_name, dependency_definitions) thread_safe do command = build_namespace_command(namespace_name, dependency_definitions) prevent_dependency_overlap!(command) append_command(command) end end |
#append_register(dependency_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.
This method returns an undefined value.
38 39 40 41 42 43 44 |
# File 'lib/smart_core/container/command_definer.rb', line 38 def append_register(dependency_name, dependency_definition, ) thread_safe do command = build_register_command(dependency_name, dependency_definition, ) prevent_namespace_overlap!(command) append_command(command) end end |