From: Morton Goldberg Date: 2008-01-04T21:48:20+09:00 Subject: Re: With statement On Jan 4, 2008, at 5:51 AM, ole __ wrote: > I'm pretty sure ruby doesn't have a with statement. Is it possible to > emulate one? > -- > Posted via http://www.ruby-forum.com/. Maybe. You're not very clear on what semantics you expect from 'with'. But you might try alias with instance_eval Then you can write stuff such as: obj.with do foo bar end in place of obj.foo obj.bar Regards, Morton