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) = " Could not load settings. The following settings were invalid:\n\n \#{setting_errors(errors).join(\"\\n\")}\n STR\n\n super(message)\n end\n\n private\n\n def setting_errors(errors)\n errors.sort_by { |k, _| k }.map { |key, error| \"\#{key}: \#{error}\" }\n end\nend\n"