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...
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The proper way, so they say:
require 'rbconfig' WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/
Sigh. Makes one yearn for Python. Even 1.5...