class_docstr: A line-based string reader.
  
      
class_docstr_tok: ["A","line-based","string","reader","."]
docstr:         Parameters
          ----------
          data : str
             String with lines separated by '
  '.
  
          
docstr_tok: ["Parameters","--","--","--","--","--","data",":","str","String","with","lines","separated","by","'","'","."]
code: 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()
  
imports: import inspect
  import textwrap
  import re
  import pydoc
  from warnings import warn
  import collections
  import sys
label_desc: Use image node_id 1 to create a new Reader object from inherited base classes: object with example: obj = Reader(data)