Class: DamerauLevenshtein::Formatter
- Inherits:
-
Object
- Object
- DamerauLevenshtein::Formatter
- Defined in:
- lib/damerau-levenshtein/formatter.rb
Overview
Formats supplied strings according to their differences
Instance Method Summary collapse
-
#initialize(formatter) ⇒ Formatter
constructor
A new instance of Formatter.
- #show(raw_format, str1, str2) ⇒ Object
Constructor Details
#initialize(formatter) ⇒ Formatter
Returns a new instance of Formatter.
6 7 8 |
# File 'lib/damerau-levenshtein/formatter.rb', line 6 def initialize(formatter) @formatter = formatter end |
Instance Method Details
#show(raw_format, str1, str2) ⇒ Object
10 11 12 |
# File 'lib/damerau-levenshtein/formatter.rb', line 10 def show(raw_format, str1, str2) @formatter.show(raw_format, str1, str2) end |