Method: Object#itself

Defined in:
object.c

#itselfObject

Returns the receiver.

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

Returns:



556
557
558
559
560
# File 'object.c', line 556

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