class Bundler::CurrentRuby

Parent:
Object

Constants

KNOWN_MAJOR_VERSIONS
KNOWN_MINOR_VERSIONS
KNOWN_PLATFORMS

Public Instance Methods

jruby?() Show source
# File lib/bundler/current_ruby.rb, line 52
def jruby?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
end
maglev?() Show source
# File lib/bundler/current_ruby.rb, line 56
def maglev?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == "maglev"
end
mingw?() Show source
# File lib/bundler/current_ruby.rb, line 72
def mingw?
  Bundler::WINDOWS && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mingw32" && Bundler.local_platform.cpu != "x64"
end
mri?() Show source
# File lib/bundler/current_ruby.rb, line 44
def mri?
  !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby")
end
mswin64?() Show source
# File lib/bundler/current_ruby.rb, line 68
def mswin64?
  Bundler::WINDOWS && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mswin64" && Bundler.local_platform.cpu == "x64"
end
mswin?() Show source
# File lib/bundler/current_ruby.rb, line 64
def mswin?
  Bundler::WINDOWS
end
rbx?() Show source
# File lib/bundler/current_ruby.rb, line 48
def rbx?
  ruby? && defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx"
end
ruby?() Show source
# File lib/bundler/current_ruby.rb, line 39
def ruby?
  !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" ||
      RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev" || RUBY_ENGINE == "truffleruby")
end
truffleruby?() Show source
# File lib/bundler/current_ruby.rb, line 60
def truffleruby?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == "truffleruby"
end
x64_mingw?() Show source
# File lib/bundler/current_ruby.rb, line 76
def x64_mingw?
  Bundler::WINDOWS && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mingw32" && Bundler.local_platform.cpu == "x64"
end

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.