How can I find a particular string among a list of file names in Ruby? : Newb question here. I need to search through a list of files that all end in .feature and then look for certain words in each file (POST, GET, PUT, and DELETE) so I can later update each file.  I have been able to isolate each .feature file but I can't seem to figure out yet how to find each file that has the above words.

    featureLocation = puts Dir.glob "**/*.feature" # show all feature files
     puts featureLocation

I used the above to show the feature files.

I tried numerous ways to iterate through each file to find the words but no luck yet. Total newb here!

Thanks