Class: SuperDiff::Basic::Differs::MultilineString
- Inherits:
-
Core::AbstractDiffer
- Object
- Core::AbstractDiffer
- SuperDiff::Basic::Differs::MultilineString
- Defined in:
- lib/super_diff/basic/differs/multiline_string.rb
Class Method Summary collapse
Methods inherited from Core::AbstractDiffer
Class Method Details
.applies_to?(expected, actual) ⇒ Boolean
7 8 9 10 |
# File 'lib/super_diff/basic/differs/multiline_string.rb', line 7 def self.applies_to?(expected, actual) expected.is_a?(::String) && actual.is_a?(::String) && (expected.include?("\n") || actual.include?("\n")) end |