Class: Hackle::EndsWithMatcher

Inherits:
Object
  • Object
show all
Includes:
OperatorMatcher
Defined in:
lib/hackle/internal/evaluation/match/operator/operator_matcher.rb

Instance Method Summary collapse

Instance Method Details

#boolean_matches(_value, _match_value) ⇒ Object



97
98
99
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 97

def boolean_matches(_value, _match_value)
  false
end

#number_matches(_value, _match_value) ⇒ Object



93
94
95
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 93

def number_matches(_value, _match_value)
  false
end

#string_matches(value, match_value) ⇒ Object



89
90
91
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 89

def string_matches(value, match_value)
  value.end_with?(match_value)
end

#version_matches(_value, _match_value) ⇒ Object



101
102
103
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 101

def version_matches(_value, _match_value)
  false
end