Class: Dry::Plugins::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/dry/plugins/builder.rb

Overview

Plug-ins builder

See Also:

Instance Method Summary collapse

Instance Method Details

#call(host, registry: registry_builder.call(host)) ⇒ Registry

Build a plug-in registry for given host

  1. Extend host with a plug-ins host DSL
  2. Create a plug-ins registry for host, Find or create a Module containing plug-ins for host, and extend it with plug-ins registry DSL

Parameters:

  • host (Module)

Returns:



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