From: Rick DeNatale Date: 2007-03-04T01:28:49+09:00 Subject: Re: String.each On 3/3/07, Robert Klemme 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/