From: Sebastian Hungerecker Date: 2009-01-13T07:09:43+09:00 Subject: Re: How Ruby Martin DeMello wrote: > On Mon, Jan 12, 2009 at 11:56 AM, Mike Stephens wrote: > > been specifically declared as public or global. Ruby of course allows > > you to directly access data declared as private. These are examples of > > Ruby does not. Try this > > class A > def initialize > @foo = 28 > end > end > > a = A.new > a.foo a.instance_variable_get(:@foo) -- NP: Dire Straits - Ride Across The River Jabber: sepp2k@jabber.org ICQ: 205544826