From: Adam Prescott Date: 2011-03-29T00:15:17+09:00 Subject: Re: with block in ruby --001636416ddf0eb3b8049f8c675c Content-Type: text/plain; charset=UTF-8 On Mon, Mar 28, 2011 at 4:05 PM, Mario Ruiz wrote: > is there any way in ruby to do something like: > > with thisobject do > .... > > > end You could use obj.instance_eval do puts self.inspect end or: obj.instance_eval do |something| puts something.inspect end --001636416ddf0eb3b8049f8c675c--