'Generator to yield IPAC header lines, i.e. those starting and ending with
delimiter character (with trailing whitespace stripped)'

def process_lines(self, lines):

    delim = self.splitter.delimiter
    for line in lines:
        line = line.rstrip()
        if (line.startswith(delim) and line.endswith(delim)):
            (yield line.strip(delim))
