Module: Mixin::RubyEngine
- Extended by:
- RubyEngine
- Included in:
- RubyEngine
- Defined in:
- lib/mixin/ruby_engine.rb,
lib/mixin/ruby_engine/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Method Summary collapse
- #jruby? ⇒ Boolean
- #mri? ⇒ Boolean
- #rubinius? ⇒ Boolean (also: #rbx?)
Instance Method Details
#jruby? ⇒ Boolean
8 9 10 |
# File 'lib/mixin/ruby_engine.rb', line 8 def jruby? RUBY_ENGINE == 'jruby' end |
#mri? ⇒ Boolean
13 14 15 |
# File 'lib/mixin/ruby_engine.rb', line 13 def mri? RUBY_ENGINE == 'ruby' end |
#rubinius? ⇒ Boolean Also known as: rbx?
18 19 20 |
# File 'lib/mixin/ruby_engine.rb', line 18 def rubinius? RUBY_ENGINE == 'rbx' end |