From d71eab14fb5a711f43957aeb27ebad06af050193 Mon Sep 17 00:00:00 2001 From: nagai Date: Fri, 13 Nov 2009 19:11:32 +0000 Subject: * 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 --- ext/tk/lib/tk/variable.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ext/tk/lib/tk') diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb index 7290658bf8..0487b034bd 100644 --- a/ext/tk/lib/tk/variable.rb +++ b/ext/tk/lib/tk/variable.rb @@ -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 -- cgit v1.2.3