Method: Bundler::PubGrub::FailureWriter#initialize

Defined in:
lib/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb

#initialize(root) ⇒ FailureWriter

Returns a new instance of FailureWriter.



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb', line 3

def initialize(root)
  @root = root

  # { Incompatibility => Integer }
  @derivations = {}

  # [ [ String, Integer or nil ] ]
  @lines = []

  # { Incompatibility => Integer }
  @line_numbers = {}

  count_derivations(root)
end