From: Dave Thomas Date: 2000-12-16T12:10:15+09:00 Subject: [ruby-talk:7381] Re: Getting name of OS ruby was built on ptkwt@user2.teleport.com (Phil Tomson) writes: > Anybody know how I would be able to get a string that contains the name of > the operating system that the currently running ruby was built on? I need > to be able to determine this since the program will be running on several > different OS's and I need to do different things depending on where its > running. The constant RUBY_PLATFORM gives you the platform used to build the version of Ruby. On my box: irb(main):005:0> PLATFORM "i686-linux" Regards Dave