diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-17 14:57:33 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-17 14:57:33 +0000 |
commit | de804fe2350e2c3a1f6c9f92dad0e63f8495aa23 (patch) | |
tree | 54f0b4378affb121975c05b878617061fec881ca /ext/tk | |
parent | 02771a7aede0f9e3485d947ba542cdef4852caf7 (diff) | |
download | ruby-de804fe2350e2c3a1f6c9f92dad0e63f8495aa23.tar.gz |
* ext/tk/lib/tk/variable.rb: TkVariable#ref returns a TkVariable object
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
-rw-r--r-- | ext/tk/lib/tk/variable.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb index 22b17eb0e1..97d18e4a50 100644 --- a/ext/tk/lib/tk/variable.rb +++ b/ext/tk/lib/tk/variable.rb @@ -235,7 +235,8 @@ TkCore::INTERP.add_tk_procs('rb_var', 'args', <<-'EOL') end def ref(*idxs) - "#{@id}(#{idxs.collect{|idx| _get_eval_string(idx)}.join(',')})" + # "#{@id}(#{idxs.collect{|idx| _get_eval_string(idx)}.join(',')})" + TkVarAccess.new("#{@id}(#{idxs.collect{|idx| _get_eval_string(idx)}.join(',')})") end def is_hash? |