I'm not completely sure, but this should work:
- define a method called add_entry which takes two optional arguments
having
nil as default value. Inside the method, you check whether one of the
arguments is nil or not and choose the correct behaviour accordingly:

def add_entry name = nil, address = nil
  if name and address
    #behave as the addEntry(QString, QString) function
  else
    #behave as the addEntry() function
  end
end

- define two slots, one with no arguments and one with two arguments:

slots 'add_entry()', 'add_entry(QString,QString)'

Note that this won't work with signals: there can be only one signal
with a
given name, regardless of its signature.

I hope this helps

Stefano

-- 
Posted via http://www.ruby-forum.com/.