From: "ara.t.howard" Date: 2008-05-21T08:39:27+09:00 Subject: Re: is there a better way to write { yield } On May 20, 2008, at 4:58 PM, Stephan Wehner wrote: > Is there a better way to write something like > > def meth(a,b,c) > : > : > other_meth(d) { yield } > : > : > end > > That { yield } has some redundancy. > > Thanks > > Stephan > -- > Posted via http://www.ruby-forum.com/. > def meth(*a, &b) other_method(*a, &b) end a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama