Method: BasicObject#!=

Defined in:
object.c

#!=(other) ⇒ Boolean

Returns true if two objects are not-equal, otherwise false.

Returns:

  • (Boolean)


247
248
249
250
251
252
# File 'object.c', line 247

VALUE
rb_obj_not_equal(VALUE obj1, VALUE obj2)
{
    VALUE result = rb_funcall(obj1, id_eq, 1, obj2);
    return rb_obj_not(result);
}