module OS
Attributes
os[RW]
Public Class Methods
host_os()
click to toggle source
# File lib/os/os.rb, line 27 def OS.host_os case RbConfig::CONFIG['host_os'] when /mswin|msys|mingw|cygwin|bccwin|wince|emc|emx/ :windows when /darwin|mac os/ :mac when /linux/ :linux when /solaris|bsd/ :unix else raise Error::WebDriverError, "unknown os: #{RbConfig::CONFIG['host_os'].inspect}" end end
linux?()
click to toggle source
# File lib/os/os.rb, line 19 def OS.linux? os == :linux end
mac?()
click to toggle source
# File lib/os/os.rb, line 11 def OS.mac? os == :mac end
unix?()
click to toggle source
# File lib/os/os.rb, line 15 def OS.unix? os == :unix end
windows?()
click to toggle source
# File lib/os/os.rb, line 7 def OS.windows? os == :windows end