From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2007-11-30T07:20:57+09:00 Subject: Re: how to know the platform ? Richard wrote: > You can detect the user's platform by utilizing the RUBY_PLATFORM > special variable. yes, thanks it's exactly what i did : def isOSX? (/.*darwin.*/ === RUBY_PLATFORM) end the version too; def version RUBY_PLATFORM.gsub(/^[^\d]*([\d|\.]*)/, '\1') end It's ok for MacOS X, but i'd like also the get the various nix* -- Une B�vue