def peek(self, ahead=0):
        """ Peek ahead a number of lines

        The function retrieves the line that is ahead of the current
        index. If the index is at the end of the list then it returns an
        empty string.

        Arguments
        ---------
        ahead : int
            The number of lines to look ahead.


        """
        position = self.index + ahead
        try:
            line = self.docstring[position]
        except __HOLE__:
            line = ''
        return line
dataset/ETHPy150Open enthought/traits/docs/source/_extensions/refactordoc/base_doc.py/BaseDoc.peek