Using ruby to grab an intersection of items in a list of categories.