Class: JsDuck::OS

Inherits:
Object
  • Object
show all
Defined in:
lib/jsduck/os.rb

Overview

Simple helper class to detect operating system

Class Method Summary collapse

Class Method Details

.windows?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/jsduck/os.rb', line 7

def self.windows?
  RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
end