Ruby class to deal with line-oriented text files