Class: Dry::Plugins::Builder
- Inherits:
-
Object
- Object
- Dry::Plugins::Builder
- Defined in:
- lib/dry/plugins/builder.rb
Overview
Plug-ins builder
Instance Method Summary collapse
-
#call(host, registry: registry_builder.call(host)) ⇒ Registry
Build a plug-in registry for given
host
.
Instance Method Details
#call(host, registry: registry_builder.call(host)) ⇒ Registry
Build a plug-in registry for given host
- Extend
host
with a plug-ins host DSL - Create a plug-ins registry for
host
, Find or create aModule
containing plug-ins forhost
, and extend it with plug-ins registry DSL
30 31 32 |
# File 'lib/dry/plugins/builder.rb', line 30 def call(host, registry: registry_builder.call(host)) host_builder.call(host, registry) end |