From: Dan Diebolt Date: 2005-12-08T16:38:40+09:00 Subject: Re: A small query --0-99335532-1134027514=:70558 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit "with" isn't a reserved word in Ruby so what you want it isn't native. However, someone wrote a module for "with": http://raa.ruby-lang.org/list.rhtml?name=with-block http://frottage.org/rjp/ruby/with.html Srinivas Jonnalagadda wrote: Dear all, Object Pascal (at least as provided by Delphi) has a facility to send a sequence of messages to the same receiver, using a construct called 'with'. If 'obj' is an object with callable methods 'meth1', 'meth2' and 'meth3', it is possible to write: with obj do meth1(); meth2(param); meth3(param1, param2) end Can a similar thing be accomplished in Ruby? Thanks, JS --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping --0-99335532-1134027514=:70558--