From: David Roberts Date: 2006-09-23T02:02:23+09:00 Subject: Re: discovering the OS dc wrote: > hi list - > > just wondering if there is a way to find out which OS ruby is running > on? > > for these type of: > > if (windows) > system "start file.html" > else if (mac) > system "open file.html" > end > > > > -- > ------------------------------------------- > David "DC" Collier > mailto:dc@pikkle.com > +81 (0)80 6521 9559 > skype: callto://d3ntaku RUBY_PLATFORM? RUBY_PLATFORM The identifier of the platform running this program. This string is in the same form as the platform identifier used by the GNU configure utility (which is not a coincidence). David -- Posted via http://www.ruby-forum.com/.