Method: SmartCore::Container::RegistryBuilder.define
- Defined in:
- lib/smart_core/container/registry_builder.rb
.define(container_klass, registry, ignored_commands: []) ⇒ 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.
29 30 31 32 33 34 |
# File 'lib/smart_core/container/registry_builder.rb', line 29 def define(container_klass, registry, ignored_commands: []) container_klass.__container_definition_commands__.each do |command| next if ignored_commands.include?(command.class) command.call(registry) end end |