Module: Chozo::RubyEngine::ClassMethods

Included in:
Chozo::RubyEngine
Defined in:
lib/chozo/ruby_engine.rb

Instance Method Summary collapse

Instance Method Details

#jruby?Boolean

Returns:



6
7
8
# File 'lib/chozo/ruby_engine.rb', line 6

def jruby?
  RUBY_ENGINE == 'jruby'
end

#mri?Boolean

Returns:



11
12
13
# File 'lib/chozo/ruby_engine.rb', line 11

def mri?
  RUBY_ENGINE == 'ruby'
end

#rubinius?Boolean Also known as: rbx?

Returns:



16
17
18
# File 'lib/chozo/ruby_engine.rb', line 16

def rubinius?
  RUBY_ENGINE == 'rbx'
end