diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-25 14:06:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-25 14:06:31 +0000 |
commit | e6c5b9f30840ae985c4bdcb91435e9c2c06fb7ef (patch) | |
tree | c13b0ab1c74db848c100581d765fd52073f7be03 /lib/matrix.rb | |
parent | c6629c48e61f341aa5e0b4b8f0c4816a2e9e0cc1 (diff) | |
download | ruby-e6c5b9f30840ae985c4bdcb91435e9c2c06fb7ef.tar.gz |
revert r37326 "remove string literal concatenation"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r-- | lib/matrix.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb index f4e3b316f6..00fa762da6 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -1404,7 +1404,8 @@ class Matrix begin ret = obj.__send__(meth) rescue Exception => e - raise TypeError, "Coercion error: #{obj.inspect}.#{meth} => #{cls} failed:\n(#{e.message})" + raise TypeError, "Coercion error: #{obj.inspect}.#{meth} => #{cls} failed:\n" \ + "(#{e.message})" end raise TypeError, "Coercion error: obj.#{meth} did NOT return a #{cls} (was #{ret.class})" unless ret.kind_of? cls ret |