Add each_line to support ruby 1.9+.