Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::SpecificationRecord#remove_spec
remove_spec(spec)
lib/rubygems/specification_record.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification_record.rb, line 130
def remove_spec(spec)
all.delete spec.to_spec
stubs.delete spec
(@stubs_by_name[spec.name] || []).delete spec
end
Removes spec from the record.