https://github.com/mmower/platform
Gem to provide structured access to Ruby interpreter platform information
https://github.com/mmower/platform
Last synced: 5 months ago
JSON representation
Gem to provide structured access to Ruby interpreter platform information
- Host: GitHub
- URL: https://github.com/mmower/platform
- Owner: mmower
- License: mit
- Created: 2008-03-26T10:30:06.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T19:11:19.000Z (over 6 years ago)
- Last Synced: 2023-04-10T21:13:02.540Z (about 2 years ago)
- Language: Ruby
- Homepage: http://rubyforge.org/projects/platform/
- Size: 121 KB
- Stars: 7
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
#
# Platform
#
# author: Matt Mower
# license: MIT
#
#
# The Platform library offers a simple, reliable, means of
# determining what platform Ruby is running on. Underlying
# Platform is the RUBY_PLATFORM constant. This library is
# parsing this constant for information. You could easily do
# this yourself. We've just taken the hassle out of it for
# you and hopefully covered a few of the more unusual cases
# you mightn't have thought of yourself.
#
# On the other hand, if you've got cases we haven't please
# mail the authors.
#
# ==Use
#
# require 'platform'
#
# defines
#
# Platform::OS
# :unix
# :hybrid (e.g. Cygwin)
# :win32
# :vms
# :os2
# :unknown
#
# Platform::IMPL
# :macosx
# :linux
# :freebsd
# :netbsd
# :mswin
# :cygwin
# :mingw
# :bccwin
# :wince
# :vms
# :os2
# :solaris
# :aix
# :irix
# :hpux
# :unknown
#
# Platform::ARCH
# :x86
# :x86_64
# :ia64
# :powerpc
# :alpha
# :sparc
# :mips
# :parisc
# :unknown
#