Method: Object#itself

Defined in:
object.c

#itselfObject

Returns the receiver.

string = "my string"
string.itself.object_id == string.object_id   #=> true

Returns:



648
649
650
651
652
# File 'object.c', line 648

static VALUE
rb_obj_itself(VALUE obj)
{
    return obj;
}