From: James French Date: 2009-06-12T00:46:54+09:00 Subject: Re: method= and block Thanks for checking this. I guess I should raise a bug report. -----Original Message----- From: Nugroho Herucahyono [mailto:me@xinuc.org] Sent: 11 June 2009 11:27 To: ruby-talk ML 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 >