Method: Tk::Tcllib::ChatWidget#get_name
- Defined in:
- lib/tkextlib/tcllib/chatwidget.rb
#get_name(nick) ⇒ Object
71 72 73 74 75 76 77 78 |
# File 'lib/tkextlib/tcllib/chatwidget.rb', line 71 def get_name(nick) lst = tk_send('name', 'get', nick) return nil if lst.empty? nick, *opts = tk_split_simplelist(lst) h_opt = {} opts.slice(2){|k, v| h_opt[k[1..-1]] = tk_tcl2ruby(v)} [nick, h_opt] end |