Class: ConvenientService::Support::Ruby Private
- Inherits:
-
Object
- Object
- ConvenientService::Support::Ruby
- 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
-
.jruby? ⇒ Boolean
private
Returns
true
when JRuby,false
otherwise. -
.truffleruby? ⇒ Boolean
private
Returns
true
when TruffleRuby,false
otherwise. - .version ⇒ ConvenientService::Support::Version private
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.
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.
47 48 49 |
# File 'lib/convenient_service/support/ruby.rb', line 47 def truffleruby? ::RUBY_ENGINE.to_s.match?(/truffleruby/) end |
.version ⇒ ConvenientService::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 |