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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…