From: "Hoesel, Daniƫl van" Date: 2008-10-16T19:59:05+09:00 Subject: Re: newbie to ruby, search an array Use: array.include?(value) http://www.ruby-doc.org/core/classes/Array.html#M002226 Regards, Daniel -----Original Message----- From: christopherashton@hotmail.com [mailto:christopherashton@hotmail.com] Sent: donderdag 16 oktober 2008 12:56 To: ruby-talk ML Subject: newbie to ruby, search an array hi, im fairly new to ruby and cud do with some help is there an easy way to search an array to see if it contains a desired value thanks e.g. if @joe contains 'bloggs' return true and array location thanks -- Posted via http://www.ruby-forum.com/.