Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem.freebsd_platform?
freebsd_platform?
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems.rb, line 1122
def self.freebsd_platform?
RbConfig::CONFIG["host_os"].to_s.include?("bsd")
end
Is this platform FreeBSD
See also
.finish_resolve
.global_gem_cache_path
.find_unresolved_default_spec
.host
also in
4.0 · 3.4