Module: OS
- Defined in:
- lib/exceltocsv/os.rb
Overview
- File
-
os.rb
- Purpose
-
Operating System detecting
- Author
-
Jeff McAffee 06/03/2014
- Copyright
-
Copyright © 2014, kTech Systems LLC. All rights reserved.
- Website
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
23 24 25 |
# File 'lib/exceltocsv/os.rb', line 23 def OS.linux? OS.unix? and not OS.mac? end |
.mac? ⇒ Boolean
15 16 17 |
# File 'lib/exceltocsv/os.rb', line 15 def OS.mac? (/darwin/ =~ RbConfig::CONFIG["arch"]) != nil end |
.windows? ⇒ Boolean
11 12 13 |
# File 'lib/exceltocsv/os.rb', line 11 def OS.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RbConfig::CONFIG["arch"]) != nil end |