CSV changes

From: Dave Thomas <dave@...>
Date: 2004-04-12 13:29:09 UTC
List: ruby-core #2776
CSV was recently changed:

   Log:
     * remove Cell#to_str [ruby-dev:23332]
     * let Cell a subclass of String.
       * Cell is just String if you don't mind Cell's nullability.
       * Cell responds Cell#null?, Cell#data and so on if you care it's 
null or not.


While I was documenting it recently, I have to admit I didn't 
understand why the cells could simply be just lain old Strings. If they 
have data, a string is returned. If there is no data, nil is returned. 
Is it really necessary to have a separate type for cell contents?


Cheers

Dave


In This Thread

Prev Next