I have written a module called Sys::Uname that does this. It’s an extension
based on the uname command, and it’s available on the RAA. Your other
alternative is to use the output of a system call.
The above applies to *nix only. I don’t how to do it in Windows.
From: Kontra, Gergely [mailto:firstname.lastname@example.org]
Is there a way to find out the OS version from ruby?