Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Commands::SetupCommand#remove_file_list
remove_file_list(files, dir)
lib/rubygems/commands/setup_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/commands/setup_command.rb, line 629
def remove_file_list(files, dir)
Dir.chdir dir do
files.each do |file|
FileUtils.rm_f file
warn "unable to remove old file #{file} please remove it by hand" if
File.exist? file
end
end
end
No documentation available
See also
#regenerate_plugins
#remove_old_bin_files
#regenerate_binstubs
#remove_old_lib_files
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0