@@ -80,27 +80,27 @@ def is_timestamp?(value, predicate = true)
80
80
# rubocop:enable Naming/PredicateName
81
81
# rubocop:enable Style/OptionalBooleanParameter
82
82
83
- def equals ?( lhs , rhs )
83
+ def op_equals ?( lhs , rhs )
84
84
lhs == rhs
85
85
end
86
86
87
- def lessthan ?( lhs , rhs )
87
+ def op_lessthan ?( lhs , rhs )
88
88
lhs < rhs
89
89
end
90
90
91
- def greaterthan ?( lhs , rhs )
91
+ def op_greaterthan ?( lhs , rhs )
92
92
lhs > rhs
93
93
end
94
94
95
- def lessthanequals ?( lhs , rhs )
95
+ def op_lessthanequals ?( lhs , rhs )
96
96
lhs <= rhs
97
97
end
98
98
99
- def greaterthanequals ?( lhs , rhs )
99
+ def op_greaterthanequals ?( lhs , rhs )
100
100
lhs >= rhs
101
101
end
102
102
103
- def matches ?( lhs , rhs )
103
+ def op_matches ?( lhs , rhs )
104
104
lhs . match? ( Regexp . escape ( rhs ) . gsub ( '\*' , '.*?' ) )
105
105
end
106
106
@@ -111,7 +111,7 @@ def parse_compare_key
111
111
if ( match_values = OPERATION . match ( key ) )
112
112
@compare_key = key
113
113
@type , operator , @path = match_values . captures
114
- @operation = "#{ operator . downcase } ?" . to_sym
114
+ @operation = "op_ #{ operator . downcase } ?" . to_sym
115
115
@compare_predicate = parse_predicate ( type )
116
116
break
117
117
end
0 commit comments