From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2007-11-30T00:40:01+09:00 Subject: how to know the platform ? because i have some part of a script only running on MacOS X ony i'd like to know how to detect the platform from a ruby script. as in java we have : public static String OS_NAME = System.getProperty("os.name"); public static String OS_VERSION = System.getProperty("os.version"); ENV hash doen't contains any info like that. I've found : RUBY_PLATFORM giving : RUBY_PLATFORM = powerpc-darwin8.9.0 -- Une B�vue