Class: Differz::Comparer
- Inherits:
-
Object
- Object
- Differz::Comparer
- Defined in:
- lib/differz/comparer.rb
Instance Method Summary collapse
-
#initialize(file1, file2) ⇒ Comparer
constructor
A new instance of Comparer.
- #show_diff ⇒ Object
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_diff ⇒ Object
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 |