Class Platform
In: lib/more/facets/platform.rb
Parent: Object

Platform class

Methods

==   ===   =~   big_endian?   byte_order   byteorder   inspect   little_endian?   local   match   new   supported   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

Array of supported platforms (ie. pure-Ruby and local platform).

Public Instance methods

Byte order of CPU.

TODO: This doesn‘t work well apearently. We need to use a chart for possible cpus instead, maybe.

byteorder()

Alias for byte_order

[Validate]