Detect Windows in Ruby

The proper way, so they say:

require 'rbconfig' WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/

Sigh. Makes one yearn for Python. Even 1.5...