Class: JsDuck::Util::OS

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

Overview

Simple helper class to detect operating system

Class Method Summary collapse

Class Method Details

.windows?Boolean

Returns:

  • (Boolean)


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

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