From: warhero Date: 2006-12-01T04:40:06+09:00 Subject: Re: simple question, looping through each character in a string 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 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