module RSpec::Support::Ruby
@api private
Provides query methods for different rubies
Public Instance Methods
jruby?()
click to toggle source
# File lib/rspec/support/ruby_features.rb, line 27 def jruby? RUBY_PLATFORM == 'java' end
jruby_9000?()
click to toggle source
# File lib/rspec/support/ruby_features.rb, line 35 def jruby_9000? jruby? && JRUBY_VERSION >= '9.0.0.0' end
jruby_version()
click to toggle source
# File lib/rspec/support/ruby_features.rb, line 31 def jruby_version @jruby_version ||= ComparableVersion.new(JRUBY_VERSION) end
mri?()
click to toggle source
# File lib/rspec/support/ruby_features.rb, line 47 def mri? !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' end
non_mri?()
click to toggle source
# File lib/rspec/support/ruby_features.rb, line 43 def non_mri? !mri? end
rbx?()
click to toggle source
# File lib/rspec/support/ruby_features.rb, line 39 def rbx? defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' end
truffleruby?()
click to toggle source
# File lib/rspec/support/ruby_features.rb, line 51 def truffleruby? defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby' end