Class Gem::Platform
In: lib/rubygems/platform.rb
Parent: Object

Available list of platforms for targeting Gem installations.

Methods

==   ===   =~   empty?   inspect   local   match   new   to_a   to_s  

Constants

RUBY = 'ruby'   A pure-ruby gem that may use Gem::Specification#extensions to build binary files.
CURRENT = 'current'   A platform-specific gem that is built for the packaging ruby‘s platform. This will be replaced with Gem::Platform::local.

Attributes

cpu  [RW] 
os  [RW] 
version  [RW] 

Public Class methods

Public 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 has no version.

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

[Validate]