From 4826eaecf63398b0806a49248569a80db344c43e Mon Sep 17 00:00:00 2001 From: nagai Date: Tue, 19 Jul 2005 04:24:05 +0000 Subject: [PATCH] * ext/tk/lib/tk/variable.rb: For symmetry, add TkVariable#string. It returns a string even if the default value type of the TkVariable object is not "string". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ ext/tk/lib/tk/variable.rb | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2d28d9e39d..f6fdb63d85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jul 19 13:19:46 2005 Hidetoshi NAGAI + + * ext/tk/lib/tk/variable.rb: For symmetry, add TkVariable#string. It + returns a string even if the default value type of the TkVariable + object is not "string". + Mon Jul 18 21:39:18 2005 Hirokazu Yamamoto * eval.c (rb_call0): make the pointer to NODE volatile diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb index cceaa995e5..4cf2eae8ed 100644 --- a/ext/tk/lib/tk/variable.rb +++ b/ext/tk/lib/tk/variable.rb @@ -918,6 +918,7 @@ end #string(value).to_s _value end + alias string to_s def element_to_s(*idxs) _element_value(*idxs) end