Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Package#copy_to
copy_to(path)
lib/rubygems/package.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/package.rb, line 260
def copy_to(path)
FileUtils.cp @gem.path, path unless File.exist? path
end
Copies this package to path (if possible)
See also
#contents
#create_symlink
#content_address
#excludes_rubygems_floor?
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0