From a program created in Ruby is it possible to find out what OS the user is running from within the program?
For example could you check for a systems32 folder and from there decide that the user is running windows and use batch commands, or check for a root folder or something that all linux machines run and use bash commands instead?