Class: Sentino::Distance
- Inherits:
-
Object
- Object
- Sentino::Distance
- Defined in:
- lib/sentino/distance.rb
Instance Method Summary collapse
-
#initialize(reference) ⇒ Distance
constructor
A new instance of Distance.
- #match(string) ⇒ Object
Constructor Details
#initialize(reference) ⇒ Distance
Returns a new instance of Distance.
4 5 6 |
# File 'lib/sentino/distance.rb', line 4 def initialize(reference) @reference = reference end |
Instance Method Details
#match(string) ⇒ Object
8 9 10 |
# File 'lib/sentino/distance.rb', line 8 def match(string) check(string) end |