Available list of platforms for targeting Gem installations.

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

Constants

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

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

Attributes

cpu

Read & Write
No documentation available

os

Read & Write
No documentation available
Read & Write
No documentation available
Class Methods
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
Instance Methods

Is other equal to this platform? Two platforms are equal if they have the same CPU, OS and version.

Does other match this platform? Two platforms match if they have the same CPU, or either has a CPU of ‘universal’, they have the same OS, and they have the same version, or either one has no version

Additionally, the platform will match if the local CPU is ‘arm’ and the other CPU starts with “arm” (for generic ARM family support).

Of note, this method is not commutative. Indeed the OS ‘linux’ has a special case: the version is the libc name, yet while “no version” stands as a wildcard for a binary gem platform (as for other OSes), for the runtime platform “no version” stands for ‘gnu’. To be able to disinguish these, the method receiver is the gem platform, while the argument is the runtime platform.

Does other match this platform? If other is a String it will be converted to a Gem::Platform first. See === for matching rules.

An alias for ==
No documentation available
No documentation available
No documentation available