module RSpec::Support::Ruby
@api private
Provides query methods for different rubies
Public Instance Methods
Source
# File lib/rspec/support/ruby_features.rb, line 29 def jruby? RUBY_PLATFORM == 'java' end
Source
# File lib/rspec/support/ruby_features.rb, line 37 def jruby_9000? jruby? && JRUBY_VERSION >= '9.0.0.0' end
Source
# File lib/rspec/support/ruby_features.rb, line 33 def jruby_version @jruby_version ||= ComparableVersion.new(JRUBY_VERSION) end
Source
# File lib/rspec/support/ruby_features.rb, line 49 def mri? !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' end
Source
# File lib/rspec/support/ruby_features.rb, line 41 def rbx? defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' end
Source
# File lib/rspec/support/ruby_features.rb, line 53 def truffleruby? defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby' end