"Robert Klemme" <bob.news / gmx.net> writes:

> "Christian Neukirchen" <chneukirchen / gmail.com> schrieb im Newsbeitrag
> news:m2pt0eeubv.fsf / lilith.local...
>>
>> Hello,
>>
>> 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"]
>
>>> ["foo\nbar"]
> => ["foo\nbar"]

irb(main):001:0> a = [1,2,3]
=> [1, 2, 3]
irb(main):002:0> [a]
=> [[1, 2, 3]]

:)

> Regards
>
>     robert

Christian Neukirchen
<chneukirchen / gmail.com>