Dossy <dossy / panoptic.com> wrote in message news:<20020512115044.GD28949 / panoptic.com>...
> On 2002.05.12, patrick-may / monmouth.com <patrick-may / monmouth.com> wrote:
> > cgi['key'].values.each { |value|
> > 
> > }
> 
> cgi['key'].to_a.each { | value | ... }
> 
> While #values may be more human readable, #to_a is idiomatic for
> Ruby programmers: we know that we expect an Array to come back.

True, except that :to_a conflicts with the :to_a that String mixes in
from Enumerable.  Thus I prefer :values, because it adds to the String
instead of reducing its functionality.

~ Patrick