On 3/3/07, Robert Klemme <shortcutter / googlemail.com> wrote:

> Yeah, String's enumeration is a bit weird and inconsistent.  Using a
> String as array of lines does have it's uses at times but I wonder
> whether changing #each to return characters would be more useful (apart
> from breaking existing code).
>

Ruby 1.9 has added String#each_char

I agree, String's enumeration is one of the most counterintuitive
features for me in Ruby, but it is what it is.
-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/