ruby-os

Simple and easy way to know if you're on windows or not (reliably)
  http://github.com/rdp/os
  0
  no reviews



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"