Skip to content

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

instance method

Gem::Package::TarWriter#add_file_simple

add_file_simple(name, mode, size) { |io| ... }

Add file name with permissions mode size bytes long. Yields an IO to write the file to.