On Wed, 22 Jun 2005, Joachim Just wrote:

>
> I wonder whether within ruby there is a method to find out on which platform 
> my application is running.
>
> Unfortunately, the application has to know if it is a 32-bit or 64-bit 
> system.
>
> Any hints are highly appreciated.

untested, but

   [42].pack('L').size * 8  # => 32

this should be the number of bits per long.

you may also be able to get something from Config::CONFIG

hth.

-a
-- 
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| My religion is very simple.  My religion is kindness.
| --Tenzin Gyatso
===============================================================================