Returns:
14 15 16
# File 'lib/os.rb', line 14 def OS.linux? OS.unix? and not OS.mac? end
6 7 8
# File 'lib/os.rb', line 6 def OS.mac? (/darwin/ =~ RUBY_PLATFORM) != nil end
10 11 12
# File 'lib/os.rb', line 10 def OS.unix? !OS.windows? end
2 3 4
# File 'lib/os.rb', line 2 def OS.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end