warhero
11/30/2006 7:40:00 PM
Yes, I saw the each_char method in the RDocs but when I tried using it,
it gave me an error. Now I see I had to load it. i'll try that.
thanks.
On Nov 30, 2:29 pm, James Edward Gray II <j...@grayproductions.net>
wrote:
> On Nov 30, 2006, at 1:13 PM, dbl...@wobblini.net wrote:
>
> > You can also do:
>
> > word.split(//).each {|char| puts char }Or without the Array:
>
> word.scan(/./m) { |char| ... }
>
> Or you can load the each_char() method from the standard library:
>
> require "jcode"
> word.each_char { |char| ... }
>
> James Edward Gray II