Forum: Ruby How to know the OS platform

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
13c60e2a5806406b537daa542d3495da?d=identicon&s=25 huang zhimin (Guest)
on 2007-05-25 07:20
(Received via mailing list)
How can i know which OS platform the ruby application is running, MS
Windows, Mac OS or Linux?

thank you
2f4d4f9c35ea851bffb9a9cc2e086365?d=identicon&s=25 Harry Kakueki (Guest)
on 2007-05-25 07:50
(Received via mailing list)
On 5/25/07, huang zhimin <flyerhzm@gmail.com> 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/
Caf38c89d40443a858741b61ac6d82de?d=identicon&s=25 Dan Zwell (Guest)
on 2007-05-25 08:25
(Received via mailing list)
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 topic is locked and can not be replied to.