Class: JarTools::Diff::TextDiff
- Inherits:
-
Object
- Object
- JarTools::Diff::TextDiff
- Defined in:
- lib/jartools/diff.rb
Instance Method Summary collapse
- #different? ⇒ Boolean
-
#initialize(a, b) ⇒ TextDiff
constructor
A new instance of TextDiff.
- #text_description ⇒ Object
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
192 193 194 |
# File 'lib/jartools/diff.rb', line 192 def different? @s1 != @s2 end |
#text_description ⇒ Object
196 197 198 |
# File 'lib/jartools/diff.rb', line 196 def text_description printable_diff if different? end |