From: Richard Date: 2007-11-30T04:29:59+09:00 Subject: Re: how to know the platform ? You can detect the user's platform by utilizing the RUBY_PLATFORM special variable. Phrogz wrote: > On Nov 29, 8:39 am, unbewusst.s...@weltanschauung.com.invalid (Une > B�vue) wrote: > >> 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. >> > > Please search the archives - this has come up at least twice recently, > with discussion about regexps that do and don't work, and gems that > exist to do this for you. >