Created
January 13, 2013 20:25
-
-
Save jeffreyiacono/4526040 to your computer and use it in GitHub Desktop.
fun with ruby's DATA object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "csv" | |
| CSV.parse(DATA, headers: true).each do |row| | |
| puts row["kURL"] | |
| end | |
| __END__ | |
| kId,kName,kURL | |
| 1,Google UK,http://google.co.uk | |
| 2,"Yahoo, UK",http://yahoo.co.uk |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
more @ http://caiustheory.com/why-i-love-data