In Ruby, how would I return true if a string is not in an array of options?
# pseudo code do_this if current_subdomain not_in [\"www\", \"blog\", \"foo\", \"
do_this unless ["www", "blog", "foo", "bar"].include?(current_subdomain)
or
do_this if not ["www", "blog", "foo", "bar"].include?(current_subdomain)
I'm using the Array#include? method.
However using unless is a fairly big ruby idiom.
unless