class Bundler::CurrentRuby
常量
- KNOWN_MAJOR_VERSIONS
- KNOWN_MINOR_VERSIONS
- KNOWN_PLATFORMS
公共实例方法
jruby?() 点击切换源代码
# File bundler/current_ruby.rb, line 59 def jruby? RUBY_ENGINE == "jruby" end
maglev?() 点击切换源代码
# File bundler/current_ruby.rb, line 63 def maglev? RUBY_ENGINE == "maglev" end
mri?() 点击切换源代码
# File bundler/current_ruby.rb, line 51 def mri? !windows? && RUBY_ENGINE == "ruby" end
rbx?() 点击切换源代码
# File bundler/current_ruby.rb, line 55 def rbx? ruby? && RUBY_ENGINE == "rbx" end
ruby?() 点击切换源代码
# File bundler/current_ruby.rb, line 45 def ruby? return true if Bundler::GemHelpers.generic_local_platform_is_ruby? !windows? && (RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev" || RUBY_ENGINE == "truffleruby") end
truffleruby?() 点击切换源代码
# File bundler/current_ruby.rb, line 67 def truffleruby? RUBY_ENGINE == "truffleruby" end
windows?() 点击切换源代码
# File bundler/current_ruby.rb, line 71 def windows? Gem.win_platform? end