How to know the OS platform

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

thank you

On 5/25/07, huang zhimin [email protected] 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/

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs