From: Martin DeMello Date: 2008-03-28T03:51:01+09:00 Subject: Re: pypes On Thu, Mar 27, 2008 at 11:33 AM, Dave Thomas wrote: > > http://pragdave.blogs.pragprog.com/pragdave/2007/12/pipelines-using.html > http://pragdave.blogs.pragprog.com/pragdave/2008/01/pipelines-using.html Tangentially, why did the trick of defining methods with the same name as classes, to delegate to Class.new, fall out of favour? tripler = Transformer.new {|val| val * 3} would read more nicely as tripler = Transformer {|val| val * 3} with def Transformer(x); Transformer.new(x); end I remember it being a commoner practice a few years ago. martin