From: Daniel Berger Date: 2009-05-15T07:31:24+09:00 Subject: Re: Syntactic sugar idea On May 13, 8:42 pm, Daniel DeLorme wrote: > It seems that often an object will be passed into a block only to invoke > a method of that object: >    arr.map{ |obj| obj.some_method } > > So I had the (weird? stupid?) thought that it would be nice to have some > syntactic sugar like this: >    arr.map{ .some_method } require 'enumerable/extra' arr.map(:some_method) Regards, Dan