How to know the OS platform


#1

How can i know which OS platform the ruby application is running, MS
Windows, Mac OS or Linux?

thank you


#2

On 5/25/07, huang zhimin removed_email_address@domain.invalid wrote:

How can i know which OS platform the ruby application is running, MS
Windows, Mac OS or Linux?

thank you


http://sourceforge.net/projects/mycodeline/

I’ve never used this, but does this help?

http://www.rubycentral.com/book/rubyworld.html#S5

Harry

A Look into Japanese Ruby List in English
http://www.kakueki.com/


#3

huang zhimin wrote:

How can i know which OS platform the ruby application is running, MS
Windows, Mac OS or Linux?

thank you

$ irb

puts PLATFORM
x86_64-linux
=> nil