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

Methods included from Methods

#configure

Instance Method Details

#configConfig

Return object’s configuration

Returns:



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