Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::ConfigFile.load_with_rubygems_config_hash
load_with_rubygems_config_hash(yaml)
lib/rubygems/config_file.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/config_file.rb, line 737
def self.load_with_rubygems_config_hash(yaml)
require_relative "yaml_serializer"
content = Gem::YAMLSerializer.load(yaml, permitted_classes: [])
return {} unless content.is_a?(Hash)
deep_transform_config_keys!(content)
end
No documentation available
See also
.dump_with_rubygems_yaml
.new
.deep_transform_config_keys!
.normalize_credentials_key
also in
4.0 · 3.4 · 3.3