summaryrefslogtreecommitdiff
path: root/ext/tk/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib')
-rw-r--r--ext/tk/lib/tk/variable.rb6
1 files changed, 2 insertions, 4 deletions
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