Class: ConvenientService::Support::Ruby Private

Inherits:
Object
  • Object
show all
Defined in:
lib/convenient_service/support/ruby.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.jruby?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns true when JRuby, false otherwise.

Returns:

  • (Boolean)

See Also:



33
34
35
# File 'lib/convenient_service/support/ruby.rb', line 33

def jruby?
  ::RUBY_PLATFORM.to_s.match?(/java/)
end

.truffleruby?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns true when TruffleRuby, false otherwise.

Returns:

  • (Boolean)


47
48
49
# File 'lib/convenient_service/support/ruby.rb', line 47

def truffleruby?
  ::RUBY_ENGINE.to_s.match?(/truffleruby/)
end

.versionConvenientService::Support::Version

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
# File 'lib/convenient_service/support/ruby.rb', line 16

def version
  @version ||= Support::Version.new(::RUBY_VERSION)
end