APIdock / Ruby
/
method

set_default_handler

ruby latest stable - Class: XMLRPC ::BasicServer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

set_default_handler(&handler)
public

Sets handler as the default-handler, which is called when no handler for a method-name is found.

handler is a code-block.

The default-handler is called with the (XML-RPC) method-name as first argument, and the other arguments are the parameters given by the client-call.

If no block is specified the default of XMLRPC::BasicServer is used, which raises a XMLRPC::FaultException saying "method missing".

# File lib/xmlrpc/server.rb, line 185
 def set_default_handler(&handler)
 @default_handler = handler
 self
 end

AltStyle によって変換されたページ (->オリジナル) /