[rubygems/rubygems] Simplify documentation

I don't think this method is any worse than others, let's only document
what it does.

https://github.com/rubygems/rubygems/commit/dec722187f
This commit is contained in:
David Rodriguez 2024-05-06 15:33:44 +02:00 committed by git
parent 6454238072
commit 91e3871970

View File

@ -923,16 +923,7 @@ class Gem::Specification < Gem::BasicSpecification
end
##
# Sets the known specs to +specs+. Not guaranteed to work for you in
# the future. Use at your own risk. Caveat emptor. Doomy doom doom.
# Etc etc.
#
#--
# Makes +specs+ the known specs
# Listen, time is a river
# Winter comes, code breaks
#
# -- wilsonb
# Sets the known specs to +specs+.
def self.all=(specs)
@@stubs_by_name = specs.group_by(&:name)