>> str.each do |ch|
> 
> That'd be each_char, I suppose. String#each is each_line.

IOW:

  ... or .each_char or .each_line or .each_byte or ...