Group: comp.lang.ruby
From: Richard
Date: Thursday, November 29, 2007 1:28 PM
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.
>

Safety Articles | Usenet Groups | Usenet News | Bluegrass