From: Jean-Hugues ROBERT Date: 2002-05-11T06:28:45+09:00 Subject: Re: cgi params api At 05:56 11/05/2002 +0900, you wrote: >On Sat, May 11, 2002 at 03:27:13AM +0900, > Jean-Hugues ROBERT wrote: > > > >> > cgi["name"].to_a # ["value1", "value2", "value3",...] > > > > > >I just noticed that :to_a conflicts with Enumerable.to_a, which String > > >mixes in. Perhaps the original name :multiple is better? > > > > > >~ Patrick > > > > cgi["name"].values ? > >cgi["name"] # ==> "value" >cgi["name"].values # ==> "value".values ???. Wakou Aoyama Yes ! That works. I learned it recently ! You basically *.extend* "value" so that it now have a singleton method called .values(). Cool, isn't it ? I may still prefer cgi.name.values however (if I were to think about it more). JHR ------------------------------------------------------------------------- Web: http://hdl.handle.net/1030.37/1.1 Phone: +33 (0) 4 92 27 74 17