summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-19 04:24:05 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-19 04:24:05 +0000
commit22f6bbbb15221b74474e43f4e1ceee5e7b069ac7 (patch)
tree20286cbb5cb3433974e2ab780f1310b05fa6e665 /ext/tk/lib
parentfb330bc3bbc22fd6152cb492a2943168c4e8059a (diff)
downloadruby-22f6bbbb15221b74474e43f4e1ceee5e7b069ac7.tar.gz
ruby-22f6bbbb15221b74474e43f4e1ceee5e7b069ac7.tar.xz
ruby-22f6bbbb15221b74474e43f4e1ceee5e7b069ac7.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@8795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib')
-rw-r--r--ext/tk/lib/tk/variable.rb1
1 files changed, 1 insertions, 0 deletions
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