Ruby class that reads in text file and searches values using regular expressions