Flowdock
method

extract_files

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: FakePackage
extract_files(destination_dir, pattern = '*') public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/installer.rb, line 114
    def extract_files destination_dir, pattern = '*'
      FileUtils.mkdir_p destination_dir

      spec.files.each do |file|
        file = File.join destination_dir, file
        next if File.exist? file
        FileUtils.mkdir_p File.dirname(file)
        File.open file, 'w' do |fp| fp.puts "# #{file}" end
      end
    end
Register or log in to add new notes.