10
It is the .index method of Array.
http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-index
In ruby, only false and nil are considered as false value, so you could just do:
arr = %w{a, b, c}
c = 'c'
if arr.index c
# do something
else
# do something else
end