Ruby 2.4.0 リファレンスマニュアル > ライブラリ一覧 > ppライブラリ > Objectクラス > pretty_print_inspect

instance method Object#pretty_print_inspect

pretty_print_inspect -> String[permalink][rdoc] [added by pp]

Object#pretty_print を使って Object#inspect と同様にオブジェクトを人間が読める形式に変換した文字列を返します。

出力する全てのオブジェクトに Object#pretty_print が定義されている必要があります。そうでない場合には RuntimeError が発生します。

[EXCEPTION] RuntimeError:
出力する全てのオブジェクトに Object#pretty_print が定義されていない場合に発生します。