Ruby 2.5.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Objectクラス > itself

instance method Object#itself

itself -> object[permalink][rdoc]

self を返します。


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