module Sesh::Inferences::OS
Public Class Methods
linux?()
click to toggle source
# File lib/sesh/inferences.rb, line 48 def OS.linux?; OS.unix? and not OS.mac? end
mac?()
click to toggle source
# File lib/sesh/inferences.rb, line 46 def OS.mac?; (/darwin/ =~ RUBY_PLATFORM) != nil end
unix?()
click to toggle source
# File lib/sesh/inferences.rb, line 47 def OS.unix?; !OS.windows? end
windows?()
click to toggle source
# File lib/sesh/inferences.rb, line 44 def OS.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end