General purpose text file parser for Ruby