module RSpec::Support::Ruby

def jruby?

def jruby?
  RUBY_PLATFORM == 'java'
end

def jruby_9000?

def jruby_9000?
  jruby? && JRUBY_VERSION >= '9.0.0.0'
end

def jruby_version

def jruby_version
  @jruby_version ||= ComparableVersion.new(JRUBY_VERSION)
end

def mri?

def mri?
  !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby'
end

def non_mri?

def non_mri?
  !mri?
end

def rbx?

def rbx?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
end

def truffleruby?

def truffleruby?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby'
end