From: "Eregon (Benoit Daloze)" Date: 2012-07-01T07:36:02+09:00 Subject: [ruby-core:46028] [ruby-trunk - Feature #4778] IO#each_chomped Issue #4778 has been updated by Eregon (Benoit Daloze). File feature4778.pdf added Attached one-minute slide for this proposal. I think the name might still be matter of discussion (it could maybe even be an option of #each_line), but it would be interesting to get the general idea evaluated. ---------------------------------------- Feature #4778: IO#each_chomped https://bugs.ruby-lang.org/issues/4778#change-27628 Author: yimutang (Joey Zhou) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: When manipulating text files, mostly, the input record separator(saying "\n") is scrap and will be chomped. I suggest a method IO#each_chomped directly yielding the record with input record separator chomped. Laziness is a virtue.. Joey -- http://bugs.ruby-lang.org/