このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

Ruby 3.1 リファレンスマニュアル

instance method Object#pretty_inspect

pretty_inspect -> String[permalink][rdoc][edit] [added by pp]

self を pp で表示したときの結果を文字列として返します。