Class: Hackle::StartsWithMatcher

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



77
78
79
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 77

def boolean_matches(_value, _match_value)
  false
end

#number_matches(_value, _match_value) ⇒ Object



73
74
75
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 73

def number_matches(_value, _match_value)
  false
end

#string_matches(value, match_value) ⇒ Object



69
70
71
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 69

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

#version_matches(_value, _match_value) ⇒ Object



81
82
83
# File 'lib/hackle/internal/evaluation/match/operator/operator_matcher.rb', line 81

def version_matches(_value, _match_value)
  false
end