Suraj Kurapati wrote:
>   is_machine_64_bit = (2 ** 32).is_a? Fixnum

Hmm, after reading the ri manpage for Fixnum, I found a better way:

  (-1.size) is 4 on a 32-bit machine and 8 on a 64-bit machine.
-- 
Posted via http://www.ruby-forum.com/.