Class: Evilution::Config::Validators::SpecMappings Private
- Defined in:
- lib/evilution/config/validators/spec_mappings.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .call(value) ⇒ Object private
Class Method Details
.call(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/evilution/config/validators/spec_mappings.rb', line 6 def self.call(value) return {} if value.nil? raise Evilution::ConfigError, "spec_mappings must be a Hash, got #{value.class}" unless value.is_a?(Hash) normalized = value.each_with_object({}) do |(source, specs), acc| key = normalize_key(source) acc[key] = normalize_value(key, specs) end warn_missing(normalized) normalized end |