[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Showing part of an array....

Rosina Bignall

7/22/2006 4:06:00 PM

Thanks, Axel

How about if you're using it on an array consisting of both an id and a
name so that

colors[0..2].collect{ |color| color.name }.join(', ')


Cheers,
Rosina

--
Posted via http://www.ruby-....