so let's say i have an array...
["pdf", "doc", "jpg", "tif", "gif"]

and i have a VALUE
"pdf"

how would i do something like
Code:
if VALUE equals any element in ARRAY
  do something
end
is this even possible this easily OR do i have to loop through the array testing the value each time? like so

Code:
ARRAY.each do |array|
  if array.value == VALUE
    do something
  end 
end