Method: Object#itself
- Defined in:
- object.c
#itself ⇒ Object
Returns the receiver.
string = "my string"
string.itself.object_id == string.object_id #=> true
648 649 650 651 652 |
# File 'object.c', line 648 static VALUE rb_obj_itself(VALUE obj) { return obj; } |