From: Robert Klemme Date: 2011-12-09T23:39:31+09:00 Subject: Re: reading from file without end-of-lines On Fri, Dec 9, 2011 at 2:28 PM, Gavin Sinclair wrote: > On Fri, Dec 9, 2011 at 8:18 PM, Robert Klemme > wrote: > >> values = File.foreach("cl").first(4).map! &:strip! > > Very elegant.  Except for that ghastly &  :) Absolutely agree! We could remedy this by allowing a single argument to Enumerable#map which would be interpreted as method name to send to objects. OTOH, does it warrant a change request? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/