#NEWLINE# def register_instance( self , obj , prefix = '' ) : #NEWLINE# #INDENT# 'Create new subdispatcher and register all public object methods on\n        it.\n\n        To be used in conjunction with the :py:func:`tinyrpc.dispatch.public`\n        decorator (*not* :py:func:`tinyrpc.dispatch.RPCDispatcher.public`).\n\n        :param obj: The object whose public methods should be made available.\n        :param prefix: A prefix for the new subdispatcher.\n        ' #NEWLINE# dispatch = self . __class__ ( ) #NEWLINE# for ( name , f ) in inspect . getmembers ( obj , ( lambda f : ( callable ( f ) and hasattr ( f , '_rpc_public_name' ) ) ) ) : #NEWLINE# #INDENT# dispatch . add_method ( f , f . _rpc_public_name ) #NEWLINE# #UNINDENT# self . add_subdispatch ( dispatch , obj )