Carl Youngblood <carl.youngblood / gmail.com> wrote in message news:<e5ed7b6904070315223f24e80e / mail.gmail.com>...
> I'm going to try using Ruby/DL to write a full-fledged ruby extension
> for the curl library.  I'd like it to work on both Windows and
> Unix-based systems.  I'm sure there are a lot of ways of doing this,
> but what do you guys think is the best way to determine whether your
> script is being called on a windows-based system or a unix-based
> system?
> 
> Thanks,
> Carl

if File::ALT_SEPARATOR
   # you're on Windows
else
   # anything but Windows
end

Regards,

Dan