Method: TkVariable#keys
- Defined in:
- lib/tk/variable.rb
#keys ⇒ Object
427 428 429 430 431 432 433 434 435 436 |
# File 'lib/tk/variable.rb', line 427 def keys if (is_scalar?) fail RuntimeError, 'cannot get keys from a scalar variable' end #tk_split_simplelist(INTERP._eval("global #{@id}; array get #{@id}")) INTERP._invoke_without_enc('global', @id) #tk_split_simplelist(INTERP._fromUTF8(INTERP._invoke_without_enc('array', 'names', @id))) tk_split_simplelist(INTERP._invoke_without_enc('array', 'names', @id), false, true) end |