Class: SmartCore::Container::DependencyCompatability::CommandSet Private
- Inherits:
-
Abstract
- Object
- Abstract
- SmartCore::Container::DependencyCompatability::CommandSet
- Defined in:
- lib/smart_core/container/dependency_compatability/command_set.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
- .potential_dependency_overlap?(command_set, namespace_name) ⇒ Boolean private
- .potential_namespace_overlap?(command_set, dependency_name) ⇒ Boolean private
Methods inherited from Abstract
prevent_dependency_overlap!, prevent_namespace_overlap!
Class Method Details
.potential_dependency_overlap?(command_set, namespace_name) ⇒ Boolean
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.
27 28 29 30 31 32 |
# File 'lib/smart_core/container/dependency_compatability/command_set.rb', line 27 def potential_dependency_overlap?(command_set, namespace_name) command_set.any? do |command| next unless command.is_a?(SmartCore::Container::Commands::Register) command.dependency_name == namespace_name end end |
.potential_namespace_overlap?(command_set, dependency_name) ⇒ Boolean
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.
14 15 16 17 18 19 |
# File 'lib/smart_core/container/dependency_compatability/command_set.rb', line 14 def potential_namespace_overlap?(command_set, dependency_name) command_set.any? do |command| next unless command.is_a?(SmartCore::Container::Commands::Namespace) command.namespace_name == dependency_name end end |