Class: Voicemail::Matcher
- Inherits:
-
Object
- Object
- Voicemail::Matcher
- Defined in:
- lib/voicemail/matcher.rb
Instance Method Summary collapse
-
#initialize(entered, actual) ⇒ Matcher
constructor
A new instance of Matcher.
- #matches? ⇒ Boolean
Constructor Details
#initialize(entered, actual) ⇒ Matcher
Returns a new instance of Matcher.
6 7 8 9 |
# File 'lib/voicemail/matcher.rb', line 6 def initialize(entered, actual) @entered = entered.to_s @actual = actual.to_s end |
Instance Method Details
#matches? ⇒ Boolean
11 12 13 |
# File 'lib/voicemail/matcher.rb', line 11 def matches? @entered == @actual end |