Method: Object#!~
- Defined in:
- object.c
#!~(other) ⇒ Boolean
Returns true if two objects do not match (using the =~ method), otherwise false.
1642 1643 1644 1645 1646 1647 |
# File 'object.c', line 1642 static VALUE rb_obj_not_match(VALUE obj1, VALUE obj2) { VALUE result = rb_funcall(obj1, id_match, 1, obj2); return RTEST(result) ? Qfalse : Qtrue; } |