module Bixby::Script::Platform
Public Instance Methods
amd64?()
click to toggle source
architectures
# File lib/bixby-client/script/platform.rb, line 35 def amd64? RbConfig::CONFIG['target_cpu'] == "x86_64" end
bsd?()
click to toggle source
# File lib/bixby-client/script/platform.rb, line 29 def bsd? uname =~ /freebsd|netbsd|openbsd/ end
linux?()
click to toggle source
# File lib/bixby-client/script/platform.rb, line 16 def linux? uname =~ /linux/ end
osx?()
click to toggle source
# File lib/bixby-client/script/platform.rb, line 10 def osx? uname =~ /darwin/ end
solaris?()
click to toggle source
# File lib/bixby-client/script/platform.rb, line 20 def solaris? uname =~ /solaris/ end
uname()
click to toggle source
# File lib/bixby-client/script/platform.rb, line 6 def uname RUBY_PLATFORM end
windows?()
click to toggle source
# File lib/bixby-client/script/platform.rb, line 24 def windows? uname =~ /mswin|mingw|bccwin|wince|cygwin/ end
Also aliased as: win?
x86?()
click to toggle source
# File lib/bixby-client/script/platform.rb, line 39 def x86? RbConfig::CONFIG['target_cpu'] =~ /i[3-6]86/ end