puts arr.join(', ')

On 8/30/08, Dick Davies <rasputnik / hellooperator.net> wrote:
> On Sat, Aug 30, 2008 at 9:05 AM, Kless <jonas.esp / googlemail.com> wrote:
>> Why when is showed an array  into a variable , it is showed with all
>> characters followed?
>>
>> ---------------
>> foo = ['a', 'b', 'c']
>> puts "the content is: #{foo}" # =>  the content is: abc
>
> puts "#{foo.join(',')}"
>> ---------------
>>
>> I'm supposed that is because at the first it converts the array into a
>> string. But is there any way of show the elements of array separated?
>>
>>
>
>
>
> --
> Rasputnik :: Jack of All Trades - Master of Nuns
> http://number9.hellooperator.net/
>
>