From: Dave Burt Date: 2005-11-14T16:22:16+09:00 Subject: Re: detect if windows or linux Alexander Fleck asked: > Hi, > what' s the best way to detect if I' m on a windows or linux machine. I > don' t want to check that by handling an exception. Is there a function in > the standard libraries. Ruby defines these constants, among others: RUBY_PLATFORM RUBY_RELEASE_DATE RUBY_VERSION C:\>ruby -e "p PLATFORM" "i386-mswin32" Cheers, Dave