From: Narihiro Nakamura Date: 2011-05-19T17:34:33+09:00 Subject: [ruby-dev:43564] [Ruby 1.9 - Bug #4736][Open] Exception#to_s return other string. Issue #4736 has been reported by Narihiro Nakamura. ---------------------------------------- Bug #4736: Exception#to_s return other string. http://redmine.ruby-lang.org/issues/4736 Author: Narihiro Nakamura Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] =begin nariです。 Exception#to_s が文字列以外を返すことがあるようです。 1.8.7, 1.9.2 ともに再現します。 $ ruby -ve "p Exception.new([:a, :b]).to_s" ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux] [:a, :b] $ ruby -ve "p Exception.new([:a, :b]).to_s" ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] [:a, :b] まつもとさんは「バグっぽい挙動」とおっしゃってました。 (()) =end -- http://redmine.ruby-lang.org