From: sto.mar@... Date: 2013-01-05T23:28:40+09:00 Subject: Re: Using and Querying Struct Am 05.01.2013 15:16, schrieb sto.mar@web.de: > matches = data.select {|member| member.city == 'Smithville' && > member.last_name == 'Smith' } > matches.first > # => # city="Smithville"> If you really need only the first match, you can use #find instead of #select: first_match = data.find {|member| member.city == 'Smithville' && member.last_name == 'Smith' } --