Class: Dry::Plugins::Registry::ClassBuilder
- Inherits:
-
Object
- Object
- Dry::Plugins::Registry::ClassBuilder
- Defined in:
- lib/dry/plugins/registry/class_builder.rb
Overview
Builds a Dry::Plugins::Registry child class specific to plugins
module
Instance Attribute Summary collapse
- #class_name ⇒ Symbol readonly
Instance Method Summary collapse
- #call(plugins) ⇒ Class(Registry)
-
#initialize(class_name: Plugins.config.registry_class_name) ⇒ ClassBuilder
constructor
A new instance of ClassBuilder.
Constructor Details
#initialize(class_name: Plugins.config.registry_class_name) ⇒ ClassBuilder
Returns a new instance of ClassBuilder.
13 14 15 |
# File 'lib/dry/plugins/registry/class_builder.rb', line 13 def initialize(class_name: Plugins.config.registry_class_name) @class_name = class_name end |
Instance Attribute Details
#class_name ⇒ Symbol (readonly)
18 19 20 |
# File 'lib/dry/plugins/registry/class_builder.rb', line 18 def class_name @class_name end |