diff options
Diffstat (limited to 'ext/tk/lib/tk.rb')
-rw-r--r-- | ext/tk/lib/tk.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 217c76f565..f10e8e23d8 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -1188,15 +1188,15 @@ class TkVariable end def to_i - Integer(number(value)) + number(value).to_i end def to_f - Float(number(value)) + number(value).to_f end def to_s - String(string(value)) + string(value).to_s end def inspect |