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::Installer#extract_files

extract_files

Reads the file index and extracts each file into the gem directory.

Ensures that files can’t be installed outside the gem directory.