Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7707573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:23:42+00:00 2026-06-01T00:23:42+00:00

The method I know of to detect the Ruby implementation (e.g., MRI, JRuby, Rubinius,

  • 0

The method I know of to detect the Ruby implementation (e.g., MRI, JRuby, Rubinius, etc.) at run time is to check the global constant RUBY_ENGINE:

$ ruby -e 'puts RUBY_ENGINE'
ruby

What’s a reasonably comprehensive list of known Ruby implementations and their corresponding values for RUBY_ENGINE?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:23:43+00:00Added an answer on June 1, 2026 at 12:23 am

    Here’s what I’ve found so far:

    | RUBY_ENGINE | Implementation    |
    |:-----------:|:------------------|
    | <undefined> | MRI < 1.9         |
    | 'ruby'      | MRI >= 1.9 or REE |
    | 'jruby'     | JRuby             |
    | 'macruby'   | MacRuby           |
    | 'rbx'       | Rubinius          |
    | 'maglev'    | MagLev            |
    | 'ironruby'  | IronRuby          |
    | 'cardinal'  | Cardinal          |
    

    Links for the above mentioned Ruby implementations:

    • MRI (Matz’s Ruby Interpreter), the Ruby reference implementation
    • REE (Ruby Enterprise Edition)
    • JRuby
    • MacRuby
    • Rubinius
    • MagLev
    • IronRuby
    • Cardinal

    Props to Ujihisa for this blog entry which had most values.
    Others were found by reading this and this. Still more values have been gathered from other answers here on StackOverflow. More props to everyone who has contributed!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a cross-browser method - I know IE has something (I've already
My university doesn't support the POST cgi method (I know, it's crazy), and I
I'm used to Atlas where the preferred (from what I know) method is to
I know the method below isn't meant to work with any Entity, and its
Does anyone know a method to programmatically close the CD tray on Windows 2000
Do you know any method to optimize this HTML Code to IE6 or 7
I'd like to know which method is recommended on Windows C programming: using malloc
I have a subclass with an over-ridden method that I know always returns a
I tried to solve problems from Project Euler. I know my method would work
Anyone know a simple method to swap the background color of a webpage using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.