From: Rick DeNatale Date: 2007-05-03T21:04:10+09:00 Subject: Re: simple subclass question On 5/2/07, Robert Dober wrote: > On 5/2/07, Rick DeNatale wrote: > > > > > class A > > instance_eval {@var = 'foo'} > I guess I lost you here Rick, is this for didactic purpose, or am I > wrong by saying that > > instance_eval { @var = 'foo' } > > is *exactly* the same as > > @var = 'foo' > > .... > D'oh! You're right of course. It's like those times when I ask my wife if she's seen my eyeglasses and she tells me that I'm wearing them! -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/