File: README.rdoc

package info (click to toggle)
ruby-ruby-engine 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 124 kB
  • sloc: ruby: 77; makefile: 5
file content (40 lines) | stat: -rw-r--r-- 856 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
= RubyEngine {<img src="https://travis-ci.org/janlelis/ruby_engine.png" />}[https://travis-ci.org/janlelis/ruby_engine]

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.ree?
    RubyEngine.ironruby?
    RubyEngine.macruby?
    RubyEngine.cardinal?

== Also See

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

== J-_-L

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