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

Instance Method Details

#jruby?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/mixin/ruby_engine.rb', line 8

def jruby?
  RUBY_ENGINE == 'jruby'
end

#mri?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/mixin/ruby_engine.rb', line 13

def mri?
  RUBY_ENGINE == 'ruby'
end

#rubinius?Boolean Also known as: rbx?

Returns:

  • (Boolean)


18
19
20
# File 'lib/mixin/ruby_engine.rb', line 18

def rubinius?
  RUBY_ENGINE == 'rbx'
end