Nothing wrong with using RUBY_PLATFORM, it is its purpose.You could also ask it the OS itself, for windows that would be
ENV['OS']Which gives "Windows_NT" on a Vista.
Don't know the counterpart for the other OS.
See also:
Nothing wrong with using RUBY_PLATFORM, it is its purpose.You could also ask it the OS itself, for windows that would be
ENV['OS']Which gives "Windows_NT" on a Vista.
Don't know the counterpart for the other OS.
See also: