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

instance method Psych::SyntaxError#problem

problem -> StringRuby 1.9.3 から[permalink][rdoc][edit]

生じたエラーの中身を文字列で返します。