hi
i have written a array like this.
my_array = ["one","two","three","four"]
no i want to check a given string is can be found from the above array.
eg:
if ( my_array.map{"one"} )
return true;
else
return false;
end
so here if i use "five" insted of "one" it should return false( as i
think) but it does no happen.
(simply want to check a given string is in the array or not)
so if any body can help????
--
Posted via http://www.ruby-forum.com/.