class Bundler::CurrentRuby
def jruby?
def jruby? RUBY_ENGINE == "jruby" end
def maglev?
def maglev? RUBY_ENGINE == "maglev" end
def mingw?
def mingw? windows? && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mingw32" && Bundler.local_platform.cpu != "x64" end
def mri?
def mri? !windows? && RUBY_ENGINE == "ruby" end
def mswin64?
def mswin64? windows? && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mswin64" && Bundler.local_platform.cpu == "x64" end
def mswin?
def mswin? # For backwards compatibility windows? # TODO: This should correctly be: # windows? && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mswin32" && Bundler.local_platform.cpu == "x86" end
def rbx?
def rbx? ruby? && RUBY_ENGINE == "rbx" end
def ruby?
def ruby? return true if Bundler::GemHelpers.generic_local_platform == Gem::Platform::RUBY !windows? && (RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev" || RUBY_ENGINE == "truffleruby") end
def truffleruby?
def truffleruby? RUBY_ENGINE == "truffleruby" end
def windows?
def windows? Gem.win_platform? end
def x64_mingw?
def x64_mingw? Gem.win_platform? && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os.start_with?("mingw") && Bundler.local_platform.cpu == "x64" end