W
Wes Gamble
What's the easiest way to figure out if you are on a Windows vs. UNIX
platform in Ruby from within a Ruby program?
Thanks,
Wes
platform in Ruby from within a Ruby program?
Thanks,
Wes
Wes said:What's the easiest way to figure out if you are on a Windows vs. UNIX
platform in Ruby from within a Ruby program?
Try this:
irb(main):005:0> puts RUBY_PLATFORM
powerpc-darwin8.0
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.