From: David Alan Black Date: 2002-05-13T20:46:42+09:00 Subject: Re: cgi params api Hello -- On Mon, 13 May 2002, David Alan Black wrote: > On Mon, 13 May 2002, Dossy wrote: > > > > True, but in the Ruby idiom, cgi["name"] ought to return a > > single value. If you want to iterate over all the values, > > you ought to do a cgi["name"].to_a.each to coerce the values > > into an array to iterate over. > > Do you mean the CGI idiom? In Ruby, a hash value can be (and often > is) anything, including an array (which really is a single value, or > rather a single object). Well, that was stated very narrowly, since it really isn't a Hash issue :-) But anyway, I'm still not sure why a single-value idiom would apply here. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav