End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::ConfigFile#write
write
lib/rubygems/config_file.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/config_file.rb, line 493
def write
require "fileutils"
FileUtils.mkdir_p File.dirname(config_file_name)
File.open config_file_name, "w" do |io|
io.write to_yaml
end
end
Writes out this config file, replacing its source.