From: Phrogz Date: 2007-06-08T00:10:07+09:00 Subject: Re: Syntax suggestion On Jun 7, 12:29 am, Joel VanderWerf wrote: > class Foo > define_method :initialize do |@x,@y,@z| end > end > > p Foo.new(1,2,3) # ==> # > > You might want to verify that this construct is allowed in 1.9 before > using it heavily. ISTR it is deprecated. Can someone confirm or deny that this is deprecated in 1.9? Not just the specific case above, but the general functionality that block parameters can be instance variables, setting the instance variable as a side-effect of just invoking the block. For example: p @a #=> nil 3.times{ |@a| } p @a #=> 2 p VERSION #=> "1.8.5"