def _include_public_methods(self, connection):
for attr in dir(connection):<EOL><INDENT>value = getattr(connection, attr)<EOL>if attr.startswith('<STR_LIT:_>') or not callable(value):<EOL><INDENT>continue<EOL><DEDENT>self.__dict__[attr] = self._wrap_public_method(attr)<EOL><DEDENT>
Include public methods from Redis connection to current instance.

        :param connection: Redis connection instance.