class Bundler::CurrentRuby

Constants

KNOWN_MAJOR_VERSIONS
KNOWN_MINOR_VERSIONS
KNOWN_PLATFORMS

Public Instance Methods

jruby?() click to toggle source
# File lib/bundler/current_ruby.rb, line 53
def jruby?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
end
maglev?() click to toggle source
# File lib/bundler/current_ruby.rb, line 57
def maglev?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == "maglev"
end
mingw?() click to toggle source
# File lib/bundler/current_ruby.rb, line 73
def mingw?
  Bundler::WINDOWS && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mingw32" && Bundler.local_platform.cpu != "x64"
end
mri?() click to toggle source
# File lib/bundler/current_ruby.rb, line 45
def mri?
  !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby")
end
mswin64?() click to toggle source
# File lib/bundler/current_ruby.rb, line 69
def mswin64?
  Bundler::WINDOWS && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mswin64" && Bundler.local_platform.cpu == "x64"
end
mswin?() click to toggle source
# File lib/bundler/current_ruby.rb, line 65
def mswin?
  Bundler::WINDOWS
end
rbx?() click to toggle source
# File lib/bundler/current_ruby.rb, line 49
def rbx?
  ruby? && defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx"
end
ruby?() click to toggle source
# File lib/bundler/current_ruby.rb, line 40
def ruby?
  !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" ||
      RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev" || RUBY_ENGINE == "truffleruby")
end
truffleruby?() click to toggle source
# File lib/bundler/current_ruby.rb, line 61
def truffleruby?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == "truffleruby"
end
x64_mingw?() click to toggle source
# File lib/bundler/current_ruby.rb, line 77
def x64_mingw?
  Bundler::WINDOWS && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mingw32" && Bundler.local_platform.cpu == "x64"
end