Project

Platform

0.14
No commit activity in last 3 years
No release in over 3 years
Hopefully robust platform sensing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme
#
# Platform
#
# author: Matt Mower <self@mattmower.com>
# 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
#