Module: Chozo::RubyEngine::ClassMethods
- Included in:
- Chozo::RubyEngine
- Defined in:
- lib/chozo/ruby_engine.rb
Instance Method Summary collapse
- #jruby? ⇒ Boolean
- #mri? ⇒ Boolean
- #rubinius? ⇒ Boolean (also: #rbx?)
Instance Method Details
#jruby? ⇒ Boolean
6 7 8 |
# File 'lib/chozo/ruby_engine.rb', line 6 def jruby? RUBY_ENGINE == 'jruby' end |
#mri? ⇒ Boolean
11 12 13 |
# File 'lib/chozo/ruby_engine.rb', line 11 def mri? RUBY_ENGINE == 'ruby' end |
#rubinius? ⇒ Boolean Also known as: rbx?
16 17 18 |
# File 'lib/chozo/ruby_engine.rb', line 16 def rubinius? RUBY_ENGINE == 'rbx' end |