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.
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.