Pit Capitain <pit / capitain.de> writes:

> Christian Neukirchen schrieb:
>> do you maybe also know a nice trick to make it a single-element Array
>> iff it's not already an Array?
>>     irb(main):001:0> Array("foo\nbar")
>>     => ["foo\n", "bar"]
>> This "feature" gives me the creeps.
>
> I didn't know this behavior before, but it is documented.

I know.

>                                                           I think you
> have to define your own method. If you need an example, let me know.
>
> Regards,
> Pit

Thanks, I can do that on my own... it's just that I found this
behavior, albeit somehow logical, very confusing in the past.

Christian Neukirchen
<chneukirchen / gmail.com>