End of Life Ruby 3.2 has reached end of life and gets no more fixes. 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.2.0/lib/rubygems.rb, line 822
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.3 · 3.1 · 3.0