replace deprecated method (String#lines -> String#each_line)