Method: Object#=~
- Defined in:
- object.c
#=~(other) ⇒ nil
This method is deprecated.
This is not only unuseful but also troublesome because it may hide a type error.
1624 1625 1626 1627 1628 1629 1630 1631 1632 |
# File 'object.c', line 1624
static VALUE
rb_obj_match(VALUE obj1, VALUE obj2)
{
if (rb_warning_category_enabled_p(RB_WARN_CATEGORY_DEPRECATED)) {
rb_warn("deprecated Object#=~ is called on %"PRIsVALUE
"; it always returns nil", rb_obj_class(obj1));
}
return Qnil;
}
|