From: Tim Hunter Date: 2009-05-25T07:34:06+09:00 Subject: Re: Inserting a counter into a .each loop Mk 27 wrote: > Tim Hunter wrote: > >> What's wrong with >> >> x = 0 >> string.each_byte do |f| >> x += 1 >> end > > Clearly my method is better here Tim. > Maybe somebody should do a benchmark. :-) -- RMagick: http://rmagick.rubyforge.org/