Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Gem::Package#extract_files

extract_files(destination_dir, pattern = "*")

Extracts the files in this package into destination_dir

If pattern is specified, only entries matching that glob will be extracted.

See also #copy_to #gzip_to #contents #initialize also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0