Problem with a maf parser

Hi, i need to restart a MAF parser
(Genome Browser FAQ) after reaching
end of file. The parser is here I need to
record position of first block and seek back to it after returning EOF,
but i have problems in finding where in the code i have to do it. It’s
this issue Rewind parser after reaching EOF · Issue #55 · csw/bioruby-maf · GitHub)
Thanks in advance for help

The Multiple Alignment Format, described by UCSC, stores a series of
multiple alignments in a single file. Suitable for whole-genome to
whole-genome alignments, metadata such as source chromosome, start
position, size, and strand can be stored.