Methods
- A
- C
- D
- E
- G
- H
- L
- M
- N
- P
- S
Constants
PACKAGE_NAME | = | 'chatwidget'.freeze |
TkCommandNames | = | ['::chatwidget::chatwidget'.freeze].freeze |
Class Public methods
package_name()
Link
package_version()
Link
Instance Public methods
add_name(nick, opts={})
Link
chat_widget()
Link
delete_name(nick)
Link
entry_widget()
Link
get_name(nick)
Link
hide_names()
Link
hide_topic()
Link
hook_add(type, *args, &blk)
Link
# File ext/tk/lib/tkextlib/tcllib/chatwidget.rb, line 93 def hook_add(type, *args, &blk) # args -> [prior, cmd], [prior], [cmd] #type -> 'message', 'post', 'names_group', 'names_nick', 'chatstate', 'url' if prior = args.shift if !prior.kind_of?(Numeric) cmd = prior if (prior = args.shift) && !prior.kind_of?(Numeric) # error args.unshift(prior) end args.unshift(cmd) end prior ||= 50 # default priority end cmd = args.shift || blk fail ArgumentError, "invalid arguments" unless args.empty? fail ArgumentError, "no callback is given" unless cmd _parse_hook_list(tk_send('hook', 'add', type, cmd, prior)) end
hook_list(type)
Link
hook_remove(type, cmd)
Link
hook_run(type, *cmd_args)
Link
list_name()
Link
list_name_full()
Link
message(msg, opts={})
Link
names_widget()
Link
set_topic(topic)
Link
show_names()
Link