instance method
Gem::SpecificationRecord#latest_spec_for
latest_spec_for(name)
lib/rubygems/specification_record.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/specification_record.rb, line 192
def latest_spec_for(name)
latest_specs(true).find {|installed_spec| installed_spec.name == name }
end
Return the latest installed spec in the record for gem name.