0.01
Low commit activity in last 3 years
No release in over a year
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
 Dependencies

Development

~> 10.0
~> 3.0
~> 2.4
 Project Readme

RubyEngine Gem Version ¶ ↑

Provides a RubyEngine to simplify checking on which implementation your Ruby programs is running.

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.mri?
RubyEngine.jruby?
RubyEngine.rubinius?
RubyEngine.macruby?

Also See¶ ↑

github.com/janlelis/ruby_version | github.com/janlelis/ruby_info | github.com/rdp/os

J-_-L¶ ↑

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