Install ruby-os by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-os
Description:
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"
Homepage: http://github.com/rdp/os
Version: 0.9.6-1
Section: universe/ruby