Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::Platform.local
local(refresh: false)
lib/rubygems/platform.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/platform.rb, line 13
def self.local(refresh: false)
return @local if @local && !refresh
@local = begin
arch = Gem.target_rbconfig["arch"]
arch = "#{arch}_60" if /mswin(?:32|64)$/.match?(arch)
new(arch)
end
end
No documentation available
See also
.installable?
.match_gem?
.generic
.match_platforms?
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0