jruby?()
click to toggle source
def jruby?
defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
end
maglev?()
click to toggle source
def maglev?
defined?(RUBY_ENGINE) && RUBY_ENGINE == "maglev"
end
mingw?()
click to toggle source
def mingw?
Bundler::WINDOWS && Gem::Platform.local.os == "mingw32" && Gem::Platform.local.cpu != "x64"
end
mri?()
click to toggle source
def mri?
!mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby")
end
mswin64?()
click to toggle source
def mswin64?
Bundler::WINDOWS && Gem::Platform.local.os == "mswin64" && Gem::Platform.local.cpu == "x64"
end
mswin?()
click to toggle source
def mswin?
Bundler::WINDOWS
end
rbx?()
click to toggle source
def rbx?
ruby? && defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx"
end
ruby?()
click to toggle source
def ruby?
!mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev")
end
x64_mingw?()
click to toggle source
def x64_mingw?
Bundler::WINDOWS && Gem::Platform.local.os == "mingw32" && Gem::Platform.local.cpu == "x64"
end