Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem.host=
(::String host) -> ::String
host=(host)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems.rb, line 607
def self.host=(host)
@host = host
end
Set the default RubyGems API host.
See also
.host
.install
.global_gem_cache_path
.java_platform?
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0