ruby-changes:13954
From: nagai <ko1@a...>
Date: Sat, 14 Nov 2009 04:11:48 +0900 (JST)
Subject: [ruby-changes:13954] Ruby:r25760 (trunk): * ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a numeric value.
nagai 2009-11-14 04:11:32 +0900 (Sat, 14 Nov 2009) New Revision: 25760 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25760 Log: * ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a numeric value. Modified files: trunk/ChangeLog trunk/ext/tk/lib/tk/variable.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 25759) +++ ChangeLog (revision 25760) @@ -1,3 +1,8 @@ +Sat Nov 14 04:07:06 2009 Hidetoshi NAGAI <nagai@a...> + + * ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a + numeric value. + Sat Nov 14 03:35:29 2009 Hidetoshi NAGAI <nagai@a...> * ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a Index: ext/tk/lib/tk/variable.rb =================================================================== --- ext/tk/lib/tk/variable.rb (revision 25759) +++ ext/tk/lib/tk/variable.rb (revision 25760) @@ -1164,10 +1164,8 @@ [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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/