Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Gem::Resolver::Set#prefetch

prefetch(reqs)

The prefetch method may be overridden, but this is not necessary. This default implementation does nothing, which is suitable for sets where looking up a specification is cheap (such as installed gems).

When overridden, the prefetch method should look up specifications matching reqs.

See also #find_all also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1