Use String#each_line instead of #each (removed in ruby1.9).
Authored by: jplang 2009-03-24
Parent: [r2621]
Child: [r2623]