Skip to content

Repository files navigation

RubyEngine Gem Version

Provides a RubyEngine constant for simple Ruby implementation checks.

Setup

On your command-line:

$ gem install ruby_engine

In Ruby:

require 'ruby_engine'

Usage

# Output the interpreter name
RubyEngine.to_s

# true for JRuby
RubyEngine.is? 'jruby'

# There are some query methods defined:
RubyEngine.cruby?
RubyEngine.jruby?
RubyEngine.truffle?

Also See

J-_-L

Copyright (c) 2010-2014, 2020 Jan Lelis. MIT License. Originated from the zucker gem.

About

RubyEngine | Better than RUBY_ENGINE

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages