Binary package “ruby-os” in ubuntu bionic
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"