If you parse an obo file and loop through is using:
@parser.elements.each ...
Then the parsing works. But if you repeatedly call
@parser.elements.next
Then the parsing is incorrect. All Stanzas and Typedefs are returned as Obo::Header instances, rather than Obo::Header then Obo::Stanza instances.
If you parse an obo file and loop through is using:
@parser.elements.each ...
Then the parsing works. But if you repeatedly call
@parser.elements.next
Then the parsing is incorrect. All Stanzas and Typedefs are returned as Obo::Header instances, rather than Obo::Header then Obo::Stanza instances.