Method: System::Ruby.jruby?

Defined in:
lib/system/ruby.rb

.jruby?TrueClass, FalseClass

Check if Ruby interpreter is JRuby. Delegates to System::Ruby.jruby? for backwards compatibility.

Returns:

  • (TrueClass, FalseClass)

    Is the current Ruby interpreter JRuby?

Since:

  • 0.1.1



247
248
249
# File 'lib/system/ruby.rb', line 247

def jruby?
  java? ? engine =~ /jruby/ : false
end