(self, data)
Parameters
        ----------
        data : str
           String with lines separated by '\n'.
Parameters
        ----------
        data : str
           String with lines separated by '\n'.
Parameters ---------- data : str String with lines separated by \ n .
def __init__(self, data):
        """
        Parameters
        ----------
        data : str
           String with lines separated by '\n'.

        """
        if isinstance(data, list):
            self._str = data
        else:
            self._str = data.split('\n')  # store string as list of lines

        self.reset()
def __init__ ( self , data ) : if isinstance ( data , list ) : self . _str = data else : self . _str = data . split ( '\n' ) # store string as list of lines self . reset ( )