We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Kernel#=~
1 parent ff3b5cd commit 69b3236Copy full SHA for 69b3236
spec/tags/core/kernel/match_tags.txt
src/main/ruby/truffleruby/core/kernel.rb
@@ -181,13 +181,8 @@ def `(str) #`
181
end
182
module_function :` # `
183
184
- def =~(other)
185
- warn "deprecated Object#=~ is called on #{Primitive.class(self)}; it always returns nil", uplevel: 1 if $VERBOSE
186
- nil
187
- end
188
-
189
def !~(other)
190
- r = self =~ other ? false : true
+ r = nil ? false : true
191
Primitive.regexp_last_match_set(Primitive.caller_special_variables, $~)
192
r
193
0 commit comments