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

Available list of platforms for targeting Gem installations.

### Methods

== === =~ const_missing inspect local match new to_a to_s

### Constants

DEPRECATED_CONSTS | = | [ :DARWIN, :LINUX_586, :MSWIN32, :PPC_DARWIN, :WIN32, :X86_LINUX
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

const_missing(name)
local()
match(platform)
new(arch)

### Public Instance methods

==(other)

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

===(other)

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.

=~(other)

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

inspect()
to_a()
to_s()

[Validate]