method

copy_file

ruby latest stable - Class: Bundler::FileUtils::Entry_

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

copy_file(dest)
public

No documentation available.

# File lib/bundler/vendor/fileutils/lib/fileutils.rb, line 1288
    def copy_file(dest)
      File.open(path()) do |s|
        File.open(dest, 'wb', s.stat.mode) do |f|
          IO.copy_stream(s, f)
        end
      end
    end