Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 550 Bytes

readme.textile

File metadata and controls

45 lines (36 loc) · 550 Bytes

About

which_ruby is a simple helper for checking running Ruby engines.

Usage

include WhichRuby in irb:


rvm use jruby
gem install which_ruby
irb
> require ‘which_ruby’
=> true
> include WhichRuby
=> Object

access the API:


> ruby_type
=> :jruby
> rt
=> :jruby
> is_ruby_type? :jruby
=> true
> r? :jruby
=> true
> jruby?
=> true

Examples

Run the examples with different runtimes, jruby for example:

rvm use jruby
ruby examples/ex.rb

TODO

  • improve me!
  • more docs
  • more todos