Method: TkNamespace#install_cmd

Defined in:
lib/tk/namespace.rb

#install_cmd(cmd) ⇒ Object



211
212
213
214
215
216
217
218
219
# File 'lib/tk/namespace.rb', line 211

def install_cmd(cmd)
  lst = tk_split_simplelist(super(cmd), false, false)
  if lst[1] =~ /^::/
    lst[1] = @fullname
  else
    lst.insert(1, @fullname)
  end
  TkCore::INTERP._merge_tklist(*lst)
end