0.01
Low commit activity in last 3 years
A long-lived project that still receives updates
Gives you an RubyEngine class that simplifies checking for your Ruby implementation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.2
~> 3.13
 Project Readme

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.