Module: Dry::Configurable::InstanceMethods
- Includes:
- Methods
- Defined in:
- lib/dry/configurable/instance_methods.rb
Overview
Instance-level API when ‘Dry::Configurable` is included in a class
Instance Method Summary collapse
-
#config ⇒ Config
Return object’s configuration.
-
#finalize!(freeze_values: false) ⇒ Object
Finalize the config and freeze the object.
Methods included from Methods
Instance Method Details
#config ⇒ Config
Return object’s configuration
33 34 35 |
# File 'lib/dry/configurable/instance_methods.rb', line 33 def config @__config__ end |
#finalize!(freeze_values: false) ⇒ Object
Finalize the config and freeze the object
40 41 42 43 |
# File 'lib/dry/configurable/instance_methods.rb', line 40 def finalize!(freeze_values: false) super freeze end |