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

add_file(name, mode) { |io| ... }

Adds file name with permissions mode, and yields an IO for writing the file to

See also .new #add_file_digest #add_file_signed also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0