Last active
December 29, 2015 13:09
-
-
Save devster/7675162 to your computer and use it in GitHub Desktop.
Detect Windows OS with ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rbconfig' | |
isWindows = /mswin|win|mingw|cygwin/i === RbConfig::CONFIG['host_os'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment