Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.ruby_api_version
ruby_api_version
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems.rb, line 812
def self.ruby_api_version
@ruby_api_version ||= RbConfig::CONFIG["ruby_version"].dup
end
Returns a String containing the API compatibility version of Ruby
See also
.ruby
.ruby_engine
.register_default_spec
.rubygems_version
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0