Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem.set_target_rbconfig
set_target_rbconfig(rbconfig_path)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems.rb, line 449
def self.set_target_rbconfig(rbconfig_path)
@target_rbconfig = Gem::TargetRbConfig.from_path(rbconfig_path)
Gem::Platform.local(refresh: true)
Gem.platforms << Gem::Platform.local unless Gem.platforms.include? Gem::Platform.local
@target_rbconfig
end
No documentation available