Class: Hackle::NumberMatcher
- Inherits:
-
Object
- Object
- Hackle::NumberMatcher
- Includes:
- ValueMatcher
- Defined in:
- lib/hackle/internal/evaluation/match/value/value_matcher.rb
Instance Method Summary collapse
Instance Method Details
#matches(operator_matcher, value, match_value) ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/hackle/internal/evaluation/match/value/value_matcher.rb', line 41 def matches(operator_matcher, value, match_value) type_value = as_number(value) type_match_value = as_number(match_value) return false if type_value.nil? || type_match_value.nil? operator_matcher.number_matches(type_value, type_match_value) end |