Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Gem::RemoteFetcher#download_to_cache

download_to_cache(dependency)

Given a name and requirement, downloads this gem into cache and returns the filename. Returns nil if the gem cannot be located.