Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Object#!~
(untyped other) -> bool
obj !~ other → true or false
object.c
View on GitHub ↗
static VALUE
rb_obj_not_match(VALUE obj1, VALUE obj2)
{
VALUE result = rb_funcall(obj1, id_match, 1, obj2);
return rb_obj_not(result);
}
Returns true if two objects do not match (using the =~ method), otherwise false.