Re: CSV changes

From: Dave Thomas <dave@...>
Date: 2004-04-12 14:21:53 UTC
List: ruby-core #2777
On Apr 12, 2004, at 8:29, Dave Thomas wrote:

> 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?

Sorry - that's what I get for typing without my glasses on. Try:

   "While I was documenting it recently, I have to admit I didn't 
understand why the cells couldn't simply be just plain old Strings..."


Sigh

Dave


In This Thread