diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-19 04:24:05 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-19 04:24:05 +0000 |
commit | 19de4a4a7b7ee037f4c85003b72a4151f39d3bb2 (patch) | |
tree | 0b98670df64b45801410689cb42afd24c2e31f1f | |
parent | 01355e952a8311f8bef7bd5ac790193c7c027a3a (diff) |
* 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/branches/ruby_1_8@8795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/tk/lib/tk/variable.rb | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Tue Jul 19 13:19:46 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> + + * 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:40:20 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * 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 |