From: Yukihiro Matsumoto Date: 2007-04-08T00:11:24+09:00 Subject: Re: Ruby 1.9/1.8 compatibility: String#lines Hi, In message "Re: Ruby 1.9/1.8 compatibility: String#lines" on Sat, 7 Apr 2007 00:32:00 +0900, murphy writes: |It seems the most important change in 1.9, in terms of compatibility, is |that String isn't Enumerable anymore. It breaks a lot of scripts on my |system. I put "lines" before calling "each". |I couldn't find an easy way to make scripts running under both 1.8 and 1.9: | |- String#each_line requires a block in 1.8, and writing each_line{} | isn't really beautiful. If you want to iterate on lines in a string, each_line is the best name to describe the behavior, I think. YMMV. matz.