def build_method_map(self, prototype, prefix='<STR_LIT>'):
if not isinstance(prototype, dict):<EOL><INDENT>prototype = dict((method, getattr(prototype, method))<EOL>for method in dir(prototype)<EOL>if not method.startswith('<STR_LIT:_>'))<EOL><DEDENT>for attr, method in prototype.items():<EOL><INDENT>if callable(method):<EOL><INDENT>self[prefix + attr] = method<EOL><DEDENT><DEDENT>
Add prototype methods to the dispatcher.

        Parameters
        ----------
        prototype : object or dict
            Initial method mapping.
            If given prototype is a dictionary then all callable objects will
            be added to dispatcher.
            If given prototype is an object then all public methods will
            be used.
        prefix: string, optional
            Prefix of methods