From: Haruka YAGNI Date: 2011-03-29T00:15:15+09:00 Subject: Re: with block in ruby Do you mean something like this? def with(arg) yield arg end with [1,2,3] do |i| p i.size # => 3 end On Tue, Mar 29, 2011 at 12:05 AM, Mario Ruiz wrote: > is there any way in ruby to do something like: > > with thisobject do >  .... > > > end > > -- > Posted via http://www.ruby-forum.com/. > > -- Haruka YAGNI hyagni@gmail.com