[ 源代码: ruby-os ]
软件包:ruby-os(0.9.6-1)
Simple and easy way to know if you're on windows or not (reliably)
It also tells how many bits the OS is, etc.
The OS library allows for some useful and easy functions, like OS.windows? (=> true or false) OS.bits ( => 32 or 64) etc"