Module: SmartCore::Container::RegistryBuilder Private
- Defined in:
- lib/smart_core/container/registry_builder.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Class Method Details
.build(commands) ⇒ SmartCore::Container::Registry
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 16 |
# File 'lib/smart_core/container/registry_builder.rb', line 12 def build(commands) SmartCore::Container::Registry.new.tap do |registry| commands.each { |command| command.call(registry) } end end |