Ruby 1.9.2 Reference Manual > All Libraries > Builtin Library > class NameError > to_s
to_s -> String
例外オブジェクトを文字列に変換して返します。