Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::Specification.latest_spec_for
latest_spec_for(name)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification.rb, line 1093
def self.latest_spec_for(name)
specification_record.latest_spec_for(name)
end
Return the latest installed spec for gem name.
See also
.from_yaml
.latest_specs
.find_unloaded_by_path
._load
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0