On Mon, May 12, 2008 at 6:36 PM, Nadim Kobeissi <kaepora / mac.com> wrote:
> Let's say I have:
>  x=1234
>  How can I convert that to the follow array:
>  x=[1, 2, 3, 4]

irb(main):001:0> x=1234
=> 1234
irb(main):002:0> x = x.to_s.split('')
=> ["1", "2", "3", "4"]

Mikel
http://lindsaar.net/