Class: Hackle::LessThanOrEqualToMatcher
- Inherits:
-
Object
- Object
- Hackle::LessThanOrEqualToMatcher
- Includes:
- OperatorMatcher
- Defined in:
- lib/hackle/internal/evaluation/match/operator/operator_matcher.rb
Instance Method Summary collapse
- #boolean_matches(_value, _match_value) ⇒ Object
- #number_matches(value, match_value) ⇒ Object
- #string_matches(value, match_value) ⇒ Object
- #version_matches(value, match_value) ⇒ Object
Instance Method Details
#boolean_matches(_value, _match_value) ⇒ Object
177 178 179 |
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 177 def boolean_matches(_value, _match_value) false end |
#number_matches(value, match_value) ⇒ Object
173 174 175 |
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 173 def number_matches(value, match_value) value <= match_value end |
#string_matches(value, match_value) ⇒ Object
169 170 171 |
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 169 def string_matches(value, match_value) value <= match_value end |
#version_matches(value, match_value) ⇒ Object
181 182 183 |
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 181 def version_matches(value, match_value) value <= match_value end |