@staticmethod
def _align(columns, text_align):
    """ This private method it's in charge of aligning text of a table.

        - notes: more information about `text_align`

        :param columns: it is the number of columns.
        :param text_align: it is a string giving information about the alignment that is wanted.  text_align can take
                           the following parameters: ``'center'``, ``'right'`` and ``'left'``.
        :return: returns a string of type ``'| :---: | :---: | :---: |'``.
        :type columns: int
        :type text_align: str
        :rtype: str

        .. note:
        """
    column_align_string = ''
    if text_align == 'center':
        column_align_string = '|' + ''.join([' :---: |' for _ in range(
            columns)])
    elif text_align == 'left':
        column_align_string = '|' + ''.join([' :--- |' for _ in range(columns)]
            )
    elif text_align == 'right':
        column_align_string = '|' + ''.join([' ---: |' for _ in range(columns)]
            )
    return column_align_string
