Skip to content

Instantly share code, notes, and snippets.

@AndrewVos
Created September 29, 2013 15:03
Show Gist options
  • Save AndrewVos/5dad8d95bd11cf041059 to your computer and use it in GitHub Desktop.
Save AndrewVos/5dad8d95bd11cf041059 to your computer and use it in GitHub Desktop.
def read_in_csv_data(csv_file_name)
CSV.foreach(csv_file_name, headers: true) do |row|
if row["Institution_Name"] =~ /art/i
next if row["Institution_Name"] =~ /culinary/i
@art_schools << ArtSchool.new(row["Institution_Name"]) #add address
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment