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


CodeLineStatistics download | SourceForge.net

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