Class: JarTools::Diff::TextDiff

Inherits:
Object
  • Object
show all
Defined in:
lib/jartools/diff.rb

Instance Method Summary collapse

Constructor Details

#initialize(a, b) ⇒ TextDiff

Returns a new instance of TextDiff.



187
188
189
190
# File 'lib/jartools/diff.rb', line 187

def initialize(a, b)
  @s1 = a
  @s2 = b
end

Instance Method Details

#different?Boolean

Returns:

  • (Boolean)


192
193
194
# File 'lib/jartools/diff.rb', line 192

def different?
  @s1 != @s2
end

#text_descriptionObject



196
197
198
# File 'lib/jartools/diff.rb', line 196

def text_description
  printable_diff if different?
end