Module: Buff::RubyEngine

Extended by:
RubyEngine
Included in:
RubyEngine, Kernel
Defined in:
lib/buff/ruby_engine.rb,
lib/buff/ruby_engine/version.rb

Constant Summary collapse

VERSION =
"1.0.0"

Instance Method Summary collapse

Instance Method Details

#jruby?Boolean

Returns:

  • (Boolean)

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

def jruby?
  RUBY_ENGINE == 'jruby'
end

#mri?Boolean

Returns:

  • (Boolean)

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

def mri?
  RUBY_ENGINE == 'ruby'
end

#rubinius?Boolean Also known as: rbx?

Returns:

  • (Boolean)

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

def rubinius?
  RUBY_ENGINE == 'rbx'
end