summaryrefslogtreecommitdiffstats
path: root/ext/tk
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-01 06:47:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-01 06:47:32 +0000
commita7cf78ec312b0f5a2030e2be1fcb1391a7b70f56 (patch)
tree9189cade96efd9e1796dcb21b5b65983e1fe4233 /ext/tk
parentecb9618b8cb767328444d903521cc3fff683cc16 (diff)
downloadruby-a7cf78ec312b0f5a2030e2be1fcb1391a7b70f56.tar.gz
ruby-a7cf78ec312b0f5a2030e2be1fcb1391a7b70f56.tar.xz
ruby-a7cf78ec312b0f5a2030e2be1fcb1391a7b70f56.zip
* parse.y (yylex): fixed 'print CGI::bar() {}, "\n"' syntax
breakage, adding new lex_state status. sigh. [new] * file.c (rb_file_s_unlink): should not allow if $SAFE >= 2. * range.c (Init_Range): define "to_ary". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
-rw-r--r--ext/tk/lib/tk.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index 217c76f56..f10e8e23d 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