warhero wrote:
> does anyone know how you will accomplish the same thing in ruby 1.9?

  str.chars.each |c| ...

T.