diff options
-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 cceaa995e..4cf2eae8e 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 |