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