The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Comma Separated Objects (CSV ORM)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jon Egil Strand

Posts: 24
Nickname: jonegil
Registered: Mar, 2006

Jon Egil Strand drives change in Mercer.
Comma Separated Objects (CSV ORM) Posted: Jan 29, 2007 7:45 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Jon Egil Strand.
Original Post: Comma Separated Objects (CSV ORM)
Feed Title: Jon Egil Strand
Feed URL: http://www.luretanker.no/blog/feed/rss2/?cat=1
Feed Description: Weblog for my professional side
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Jon Egil Strand
Latest Posts From Jon Egil Strand

Advertisement
Howto make all rows in a csv-file behave like objects? Comma Separated Values are everywhere. Everything from spreadsheats to database dumps are availabe as a string split with some delimiting value. first_name;last_name;country Peter;Pan;Neverland Richard;Feynman;1918;USA Jon Egil;Strand;Norway Wouldn’t it be nice to work on this using person.first_name instead of line[0]. Yes it would and yes it is: require "rubygems" require "faster_csv" require "ostruct" people = [...]

Read: Comma Separated Objects (CSV ORM)

Topic: Ruby In Steel Online Help Previous Topic   Next Topic Topic: Nostalgia: Time Bandits

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use