From: "ara.t.howard" Date: 2007-11-13T04:17:46+09:00 Subject: Re: alias_method :tap, :affect On Nov 12, 2007, at 11:38 AM, Rick DeNatale wrote: > a = MyObject.new.tap do |o| # or returning, or affect > o.foo = 1 > o.bar = "whatever" > end just as easy to do this though: a = MyObject.new.instance_eval{ foo 1 bar 'whatever' self } no special methods needed... returning is, imho, over rated. cheers. a @ http://codeforpeople.com/ -- it is not enough to be compassionate. you must act. h.h. the 14th dalai lama