From: Alan Moore Date: 2001-10-25T23:34:14+09:00 Subject: [ruby-talk:23298] Re: chop and chomp matz wrote: >OK, so what do you think the chomp behavior should be? >I mean the "detailed" behavior. If no argument is provided, it should look for "\r\n", "\n", or "\r" (in that order) at the end of the line and chop it off if it finds it. AFAIK, "\r", like "\n", is never used as anything but (part of) a line separator, so that shouldn't cause any problems--but please correct me if I'm wrong. I don't think chomp should bother with $/ at all. String#each_line should take this approach as well. --Alan