Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Specification#to_ruby_for_cache
to_ruby_for_cache
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/specification.rb, line 2572
def to_ruby_for_cache
for_cache.to_ruby
end
Returns a Ruby lighter-weight code representation of this specification, used for indexing only.
See to_ruby.