Parses different file formats into basic Ruby objects.