# File tk/lib/tk/winpkg.rb, line 62 def async_execute(service, topic, data) tk_call('dde', '-async', 'execute', service, topic, data) end
# File tk/lib/tk/winpkg.rb, line 82 def eval(topic, cmd, *args) tk_call('dde', 'eval', topic, cmd, *args) end
# File tk/lib/tk/winpkg.rb, line 58 def execute(service, topic, data) tk_call('dde', 'execute', service, topic, data) end
# File tk/lib/tk/winpkg.rb, line 23 def self.package_name PACKAGE_NAME end
# File tk/lib/tk/winpkg.rb, line 66 def poke(service, topic, item, data) tk_call('dde', 'poke', service, topic, item, data) end
# File tk/lib/tk/winpkg.rb, line 70 def request(service, topic, item) tk_call('dde', 'request', service, topic, item) end
def servername(topic=None)
tk_call('dde', 'servername', topic)
end
# File tk/lib/tk/winpkg.rb, line 36 def servername(*args) if args.size == 0 tk_call('dde', 'servername') else if args[-1].kind_of?(Hash) # dde 1.2 + keys = _symbolkey2str(args.pop) force = (keys.delete('force'))? '-force': None exact = (keys.delete('exact'))? '-exact': None if keys.size == 0 tk_call('dde', 'servername', force, exact) elsif args.size == 0 tk_call('dde', 'servername', force, exact, *hash_kv(keys)) else tk_call('dde', 'servername', force, exact, *((hash_kv(keys) << '--') + args)) end else tk_call('dde', 'servername', *args) end end end
Commenting is here to help enhance the documentation. For example, sample code, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.