Module: OS
- Defined in:
- ext/mkrf_conf.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
21 22 23 |
# File 'ext/mkrf_conf.rb', line 21 def OS.linux? OS.unix? and not OS.mac? end |
.mac? ⇒ Boolean
13 14 15 |
# File 'ext/mkrf_conf.rb', line 13 def OS.mac? (/darwin/ =~ RbConfig::CONFIG['host_os']) != nil end |
.windows? ⇒ Boolean
9 10 11 |
# File 'ext/mkrf_conf.rb', line 9 def OS.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RbConfig::CONFIG['host_os']) != nil end |