module OS

File

os.rb

Purpose

Operating System detecting

Author

Jeff McAffee 06/03/2014

Copyright

Copyright © 2014, kTech Systems LLC. All rights reserved.

Website

ktechsystems.com

Public Class Methods

linux?() click to toggle source
# File lib/exceltocsv/os.rb, line 23
def OS.linux?
  OS.unix? and not OS.mac?
end
mac?() click to toggle source
# File lib/exceltocsv/os.rb, line 15
def OS.mac?
 (/darwin/ =~ RbConfig::CONFIG["arch"]) != nil
end
unix?() click to toggle source
# File lib/exceltocsv/os.rb, line 19
def OS.unix?
  !OS.windows?
end
windows?() click to toggle source
# File lib/exceltocsv/os.rb, line 11
def OS.windows?
  (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RbConfig::CONFIG["arch"]) != nil
end