Synopsis

XHandler Reference

Constructor Method

make_with

Make a new XHandler instance specifing the name of the handler and the number of arguments

Instance Methods of a Handler Object

do

Call the specified handelr of a passed script object (target object) with a passed arument.

call_to

Call the specified handelr of a passed script object (target object) with a passed arument.

If target object can not respond to the handler and have a handler of successor(), call_to is excuted for the returned object from successor(). This feature can be used for the chain of responder or method forwarding.

responded_by

Test whether the passed script object can respond to the handler.

Synopsis