Method: Unified::Diff#number_of_added_lines

Defined in:
lib/unified/diff.rb

#number_of_added_linesObject



31
32
33
# File 'lib/unified/diff.rb', line 31

def number_of_added_lines
  @number_of_added_lines ||= @chunks.inject(0) {|total, chunk| total + chunk.number_of_added_lines}
end