instance method
Object#itself
() -> self
obj.itself → obj
object.c
View on GitHub ↗
static VALUE
rb_obj_itself(VALUE obj)
{
return obj;
}
Returns the receiver.
Example
string = "my string" string.itself.object_id == string.object_id #=> true