Method: Bundler::Index#initialize_copy

Defined in:
lib/bundler/index.rb

#initialize_copy(o) ⇒ Object

[View source]

26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/bundler/index.rb', line 26

def initialize_copy(o)
  @sources = o.sources.dup
  @cache = {}
  @specs = {}
  @duplicates = {}

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