(self, encoder)
Registers a new name to a particular encoder

        Parameters
        ----------
        name: str
            Name of the mime subtype parsed by the encoder.
        encoder: obj
            The object which implements the required encoding functions.
Registers a new name to a particular encoder
Registers a new name to a particular encoder
def register(self, encoder):
        """
        Registers a new name to a particular encoder

        Parameters
        ----------
        name: str
            Name of the mime subtype parsed by the encoder.
        encoder: obj
            The object which implements the required encoding functions.
        """
        try:
            self[encoder.name()] = encoder
        except AttributeError:
            raise ScrapbookInvalidEncoder("Encoder has no `name` method available")
def register ( self , encoder ) : try : self [ encoder . name ( ) ] = encoder except AttributeError : raise ScrapbookInvalidEncoder ( "Encoder has no `name` method available" )