Module: Dry::System::ProviderSources::Settings Private
- Defined in:
- lib/dry/system/provider_sources/settings/config.rb,
lib/dry/system/provider_sources/settings.rb,
lib/dry/system/provider_sources/settings/loader.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: Config, Loader, Source
Constant Summary collapse
- InvalidSettingsError =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Class.new(ArgumentError) do # @api private def initialize(errors) = <<~STR Could not load settings. The following settings were invalid: #{setting_errors(errors).join("\n")} STR super() end private def setting_errors(errors) errors.sort_by { |k, _| k }.map { |key, error| "#{key}: #{error}" } end end