method

initialize_copy

ruby latest stable - Class: Bundler::Index

Method not available on this version

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

initialize_copy(o)
public

No documentation available.

# File lib/bundler/index.rb, line 28
    def initialize_copy(o)
      @sources = o.sources.dup
      @cache = {}
      @specs = Hash.new {|h, k| h[k] = {} }
      @all_specs = Hash.new {|h, k| h[k] = EMPTY_SEARCH }

      o.specs.each do |name, hash|
        @specs[name] = hash.dup
      end
      o.all_specs.each do |name, array|
        @all_specs[name] = array.dup
      end
    end