Class: JsDuck::OS
- Inherits:
-
Object
- Object
- JsDuck::OS
- Defined in:
- lib/jsduck/os.rb
Overview
Simple helper class to detect operating system
Class Method Summary collapse
Class Method Details
.windows? ⇒ Boolean
7 8 9 |
# File 'lib/jsduck/os.rb', line 7 def self.windows? RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/ end |