Skip to content
On this page

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.3

Gem::Platform

< Object 7 instance methods 8 class methods

TruffleRuby >= 24 defines REUSE_AS_BINARY_ON_TRUFFLERUBY in defaults/truffleruby. However, TruffleRuby < 24 defines REUSE_AS_BINARY_ON_TRUFFLERUBY directly in its copy of lib/rubygems/platform.rb, so it is not defined if RubyGems is updated (gem update –system). Instead, we define it here in that case, similar to bundler/lib/bundler/rubygems_ext.rb. We must define it here and not in platform.rb because platform.rb is loaded before defaults/truffleruby.

Available list of platforms for targeting Gem installations.

See ‘gem help platform` for information on platform matching.

Class methods 8

Instance methods 7

Constants

A platform-specific gem that is built for the packaging Ruby’s platform. This will be replaced with Gem::Platform::local.

No documentation available

A pure-Ruby gem that may use Gem::Specification#extensions to build binary files.

Attributes

cpu

Read & Write
No documentation available

os

Read & Write
No documentation available
Read & Write
No documentation available