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.
huang zhimin (Guest)
on 2007-05-25 09: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
Harry K. (Guest)
on 2007-05-25 09:50
(Received via mailing list)
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/
Dan Z. (Guest)
on 2007-05-25 10: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.