https://github.com/janlelis/ruby_engine
RubyEngine | Better than RUBY_ENGINE
https://github.com/janlelis/ruby_engine
ruby version-check
Last synced: 10 months ago
JSON representation
RubyEngine | Better than RUBY_ENGINE
- Host: GitHub
- URL: https://github.com/janlelis/ruby_engine
- Owner: janlelis
- License: mit
- Created: 2014-01-14T22:46:55.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T10:57:13.000Z (over 1 year ago)
- Last Synced: 2025-03-17T06:11:26.510Z (10 months ago)
- Topics: ruby, version-check
- Language: Ruby
- Homepage:
- Size: 19.5 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
# RubyEngine [
](https://badge.fury.io/rb/ruby_engine) [
](https://github.com/janlelis/ruby_engine/actions?query=workflow%3ATest)
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
- https://github.com/janlelis/ruby_version
- https://github.com/janlelis/ruby_info
- https://github.com/rdp/os
- https://github.com/janlelis/irbtools
## J-_-L
Copyright (c) 2010-2014, 2020 Jan Lelis. MIT License. Originated from the
zucker gem.