Skip to content

Instantly share code, notes, and snippets.

@jeffreyiacono
Created January 13, 2013 20:25
Show Gist options
  • Select an option

  • Save jeffreyiacono/4526040 to your computer and use it in GitHub Desktop.

Select an option

Save jeffreyiacono/4526040 to your computer and use it in GitHub Desktop.
fun with ruby's DATA object
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
@jeffreyiacono
Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment