diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-25 10:07:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-25 10:07:22 +0000 |
commit | db1f7079b6ff3c7227f20fc9c0743f9147bba2d2 (patch) | |
tree | 8db391210107f63c0a2df826c706eff1e789b208 /lib/matrix.rb | |
parent | acd82f6e24494ccced2fca81681c1beb1a5e0e58 (diff) | |
download | ruby-db1f7079b6ff3c7227f20fc9c0743f9147bba2d2.tar.gz |
remove string literal concatenation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r-- | lib/matrix.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb index 00fa762da6..f4e3b316f6 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -1404,8 +1404,7 @@ 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 |