In Files

  • tk/lib/tk/winpkg.rb

Class/Module Index [+]

Quicksearch

Tk::WinDDE

Public Class Methods

async_execute(service, topic, data) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 63
def async_execute(service, topic, data)
  tk_call('dde', '-async', 'execute', service, topic, data)
end
            
eval(topic, cmd, *args) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 83
def eval(topic, cmd, *args)
  tk_call('dde', 'eval', topic, cmd, *args)
end
            
execute(service, topic, data) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 59
def execute(service, topic, data)
  tk_call('dde', 'execute', service, topic, data)
end
            
package_name() click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 24
def self.package_name
  PACKAGE_NAME
end
            
poke(service, topic, item, data) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 67
def poke(service, topic, item, data)
  tk_call('dde', 'poke', service, topic, item, data)
end
            
request(service, topic, item) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 71
def request(service, topic, item)
  tk_call('dde', 'request', service, topic, item)
end
            
servername(*args) click to toggle source

def servername(topic=None)

tk_call('dde', 'servername', topic)

end

 
               # File tk/lib/tk/winpkg.rb, line 37
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
            
services(service, topic) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 79
def services(service, topic)
  tk_call('dde', 'services', service, topic)
end
            

Public Instance Methods

async_eval(topic, cmd, *args) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 87
def async_eval(topic, cmd, *args)
  tk_call('dde', 'eval', -async, topic, cmd, *args)
end
            
binary_request(service, topic, item) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 75
def binary_request(service, topic, item)
  tk_call('dde', 'request', '-binary', service, topic, item)
end
            

Commenting is here to help enhance the documentation. For example, code samples, 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.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.