From: Martin DeMello Date: 2004-08-24T23:25:45+09:00 Subject: Re: *with* block? T. Onoma wrote: > On Tuesday 24 August 2004 07:21 am, Mauricio Fern�ndez wrote: > > my_obj.with do > > @x = 0 > > @y = 10 > > @width = 100 > > @height = 100 > > end > > my_obj.with ( > x: 0, > y: 10 > width: 100 > height: 100 > ) > > Ruby2 ? This won't work for method calls, though, will it? What would be really nice is my_obj.with { .x = 1 .y = 2 .move_to(10,10) .col = :RED .repaint } martin