Module: RSpec::Support::Ruby Private

Defined in:
lib/rspec/support/ruby_features.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Provides query methods for different rubies

Class Method Summary collapse

Class Method Details

.jruby?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


7
8
9
# File 'lib/rspec/support/ruby_features.rb', line 7

def jruby?
  RUBY_PLATFORM == 'java'
end