From: Marnen Laibow-Koser Date: 2010-01-03T05:10:51+09:00 Subject: Re: how to access something within an array Brian Candler wrote: > bingo bob wrote: >> I have this array... >> >> [#> 1.52747], [42.536251, 1.50279]], @name="La Massana", @woe_id="472580", >> @longitude=1.5153, @latitude=42.545052>] >> >> How do I access the thing called @woe_id within it! >> >> Whatever I try I can't seem to get at it? > > You may get a hint from this: > > thing = arr.first > p thing.methods - Object.methods Good point, although that's not terribly reliable if method_missing fakery is involved. Best, --  Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.