From: John Joyce Date: 2007-03-25T17:01:20+09:00 Subject: Re: adding anotehr each method to String Might not do what you expect. under current conditions you might get: � u instead of � On Mar 25, 2007, at 4:25 PM, Une B�vue wrote: > f it doesn't exist allready, i'd like to add another each method to > String similar to each_byte except it loops over chars for example : > > "zero".each_char{|c| puts c} > > would print-out : > z > e > r > o > > i know how to add a new method to a given class, what i don't know is > specifically for methods like each which pass an arg to a given > block... > > > -- > It's easy to play any musical instrument: all you have to do is > touch the right key at the right time and the instrument will > play itself. -- J.S. Bach >