From: Nugroho Herucahyono Date: 2009-06-11T19:27:26+09:00 Subject: Re: method= and block Whoaa... never do it this way, and it seems doesn't work in 1.9 too and I agree with you, that it should works. Ruby's bug ?? On 6/11/09, James French wrote: > Hi, > > In ruby 1.8.7 this does not work (syntax error): > > class A > > def test=(val, &block) > end > > end > > A.new.test = 10 do > end > > > I would really like to an associate a block in this way. Is there a way > round this? > > Cheers, > James >