class Bundler::CurrentRuby
def jruby?
def jruby? RUBY_ENGINE == "jruby" end
def maglev?
def maglev? message = "`CurrentRuby#maglev?` is deprecated with no replacement. Please use the " \ "built-in Ruby `RUBY_ENGINE` constant to check the Ruby implementation you are running on." removed_message = "`CurrentRuby#maglev?` was removed with no replacement. Please use the " \ "built-in Ruby `RUBY_ENGINE` constant to check the Ruby implementation you are running on." internally_exempted = caller_locations(1, 1).first.path == __FILE__ unless internally_exempted SharedHelpers.major_deprecation(2, message, removed_message: removed_message, print_caller_location: true) end RUBY_ENGINE == "maglev" end
def mri?
def mri? !windows? && RUBY_ENGINE == "ruby" end
def rbx?
def rbx? ruby? && RUBY_ENGINE == "rbx" end
def ruby?
def ruby? return true if Bundler::MatchPlatform.generic_local_platform_is_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