Skip to content

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

class method

Gem.global_gem_cache_path

global_gem_cache_path

The path to the global gem cache directory. This is used when global_gem_cache is enabled to share .gem files across all Ruby installations.