From: botp Date: 2008-09-05T21:19:45+09:00 Subject: Re: how to read digits in a number On Fri, Sep 5, 2008 at 6:04 PM, Pepe Sanchez wrote: > I would like to read all the characters in a string. For example > "123456" I need to read every digit separately. > "1234".each_char{|x| p x} "1" "2" "3" "4" => "1234" > "1234".each_char.map => ["1", "2", "3", "4"]