Class: Differz::Comparer

Inherits:
Object
  • Object
show all
Defined in:
lib/differz/comparer.rb

Instance Method Summary collapse

Constructor Details

#initialize(file1, file2) ⇒ Comparer

Returns a new instance of Comparer.



5
6
7
8
# File 'lib/differz/comparer.rb', line 5

def initialize(file1, file2)
  @file1 = file1
  @file2 = file2
end

Instance Method Details

#show_diffObject



10
11
12
13
14
15
# File 'lib/differz/comparer.rb', line 10

def show_diff
  get_diffs.each do |diff|
    puts diff.join(' -> ')
  end
  nil
end