Class: Identikal::Compare
- Inherits:
-
Object
- Object
- Identikal::Compare
- Defined in:
- lib/identikal/compare.rb
Constant Summary collapse
- COMPARE_METHODS =
%i[text all].freeze
Class Method Summary collapse
Class Method Details
.files_same?(file_a, file_b, compare_method: :all) ⇒ Boolean
13 14 15 16 17 18 19 20 |
# File 'lib/identikal/compare.rb', line 13 def files_same?(file_a, file_b, compare_method: :all) validate_arguments(file_a, file_b, compare_method) if compare_method == :text text_only(file_a, file_b) else with_formatting(file_a, file_b) end end |