From ebfa95daff00966a2bf18d629cf56096b4d55ad6 Mon Sep 17 00:00:00 2001 From: keiju Date: Tue, 18 Sep 2007 13:12:47 +0000 Subject: * lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/matrix.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/matrix.rb b/lib/matrix.rb index 6c4f4f548..8f2d472b8 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -1374,7 +1374,7 @@ class Vector def coerce(other) case other when Numeric - return Scalar.new(other), self + return Matrix::Scalar.new(other), self else raise TypeError, "#{self.class} can't be coerced into #{other.class}" end -- cgit