Skip to content
instance method

Object#itself

() -> self
obj.itself → obj

Returns the receiver.

Example
string = "my string"
string.itself.object_id == string.object_id   #=> true
See also #is_a? #kind_of? #instance_variable_set #method also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0