1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
keiju 2007-09-18 13:12:47 +00:00
parent 7dc5120630
commit ee9e5a6ea8
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Sep 18 22:08:42 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
* lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190]
Mon Sep 17 21:06:03 2007 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb (HTTP::GenericRequest#initialize): check path is

View file

@ -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