From: Rick DeNatale Date: 2010-10-24T03:13:47+09:00 Subject: Re: Re-naming a block On Sat, Oct 23, 2010 at 1:43 PM, Andrew Wagner wrote: > def foo &block >  Proc.new { yield } > end > > a = foo { 3 } > puts a Well maybe the answer is to create a proc with the right line number from the beginning: def foo &block Proc.new(&block) end a = foo { 3 } puts a puts a.call # 3 -- Rick DeNatale Help fund my talk at Ruby Conf 2010:http://pledgie.com/campaigns/13677 Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale