From: James Edward Gray II Date: 2006-10-18T09:44:50+09:00 Subject: Re: String not enumerable, what about IO? (was Re: Symbol < String in Ruby > 1.8) On Oct 17, 2006, at 7:29 PM, dblack@wobblini.net wrote: > What's the best way to get an array of lines or bytes from a string in > 1.9? (I think this might help me get more of a grasp of the cases > where an Enumerator is returned.) Well, using the Enumerators both of the following would work: str.lines.to_a str.each_line.to_a James Edward Gray II