This fixes an error which was being reported by reek. The refactoring also makes the #comparison method a bit more idiomatic.
The full error from reek was:
[17]:InstanceVariableAssumption: CompareWithWikidata::DiffOutputGenerator assumes too much for instance variable '@comparison' [https://github.com/troessner/reek/blob/master/docs/Instance-Variable-Assumption.md]
This fixes an error which was being reported by reek. The refactoring also makes the
#comparison
method a bit more idiomatic.The full error from reek was:
https://github.com/troessner/reek/blob/master/docs/Instance-Variable-Assumption.md
Notes to reviewer
This might be easier to review without whitespace changes.