Skip to content

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

class method

Gem::SpecFetcher.new

new(sources = nil)

Creates a new SpecFetcher. Ordinarily you want to use the default fetcher from Gem::SpecFetcher::fetcher which uses the Gem.sources.

If you need to retrieve specifications from a different source, you can send it as an argument.

See also .fetcher #available_specs #detect also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0