End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Commands::SetupCommand#prepend_destdir_if_present
prepend_destdir_if_present(path)
lib/rubygems/commands/setup_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/commands/setup_command.rb, line 624
def prepend_destdir_if_present(path)
destdir = options[:destdir]
return path if destdir.empty?
File.join(options[:destdir], path.gsub(/^[a-zA-Z]:/, ""))
end
No documentation available
See also
#make_destination_dirs
#regenerate_binstubs
#install_rdoc
#regenerate_plugins
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0