Method: SmartCore::Container::DependencyCompatability::Definition.potential_dependency_overlap?
- Defined in:
- lib/smart_core/container/dependency_compatability/definition.rb
.potential_dependency_overlap?(container_klass, 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.
30 31 32 33 34 35 36 |
# File 'lib/smart_core/container/dependency_compatability/definition.rb', line 30 def potential_dependency_overlap?(container_klass, namespace_name) anonymous_container = Class.new(container_klass).new anonymous_container.namespace(namespace_name, &(proc {})) false rescue SmartCore::Container::NamespaceOverDependencyOverlapError true end |