зеркало из https://github.com/github/ruby.git
* ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a numeric value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9a875d3aa1
Коммит
d71eab14fb
|
@ -1,3 +1,8 @@
|
|||
Sat Nov 14 04:07:06 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a
|
||||
numeric value.
|
||||
|
||||
Sat Nov 14 03:35:29 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a
|
||||
|
|
|
@ -1164,10 +1164,8 @@ end
|
|||
[other, self.to_s]
|
||||
when Symbol
|
||||
[other, self.to_sym]
|
||||
when Integer
|
||||
[other, self.to_i]
|
||||
when Float
|
||||
[other, self.to_f]
|
||||
when Numeric
|
||||
[other, self.numeric]
|
||||
when Array
|
||||
[other, self.to_a]
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче