Class: SuperDiff::Differs::MultilineString
- Defined in:
- lib/super_diff/differs/multiline_string.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.applies_to?(expected, actual) ⇒ Boolean
4 5 6 7 |
# File 'lib/super_diff/differs/multiline_string.rb', line 4 def self.applies_to?(expected, actual) expected.is_a?(::String) && actual.is_a?(::String) && (expected.include?("\n") || actual.include?("\n")) end |