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-4.0.0/lib/rubygems/commands/setup_command.rb, line 621
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0