From: Marnen Laibow-Koser Date: 2010-01-03T02:49:33+09:00 Subject: Re: how to access something within an array Philippe Cantin wrote: > You should have an accessor , try : geo_planet_object.woe_id . > > You can use introspection with : > geo_planet_object.instance_variable_get(:woe_id) .... But don't. Introspection is dangerous in this case, and should not be necessary. Just use the object's interface. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.